Check out the ROBLOX sets; one of them is a VIP Door that works. Theofficialsy 36 — 3y 0 I've already tried it, it didn't work for me but someone already helped me, thanks! So basically, how to create a gamepass door? If a player touches it, and does not have that specific gamepass, he should not be able to walk through and a screen comes that offers the player to buy that gamepass. If the player has the gamepass, he can simply walk through the door. How can you create this?
Sep 10th, 2010
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- -- list of account names allowed to go through the door.
- permission = { 'YOURNAMEHERE' } -- This is how many people can still get through, so u don't have to change shirts. You can also have another friend here.
- -- TextureId of the VIP shirt.
- texture = ' -- Go to the wiki below this script to find out how to change the shirt. And paste the link in between the ' marks.
- function checkOkToLetIn(name)
- -- convert strings to all upper case, otherwise we will let in
- if (string.upper(name) string.upper(permission[i])) then return true end
- return false
- print('Door Hit')
- local human = hit.Parent:findFirstChild('Humanoid')
- if human.Parent.Torso.roblox.Texture texture then --the shirt
- Door.CanCollide = false
- Door.CanCollide = true
- -- a human has touched this door!
- -- test the human's name against the permission list
- print('Human passed test')
- Door.CanCollide = false
- Door.CanCollide = true
- end
- end
- script.Parent.Touched:connect(onTouched)