print("VIP Door Script loaded") -- list of account names allowed to go through the door. permission = { "Username1", "Username2" , "Username3" } --Put your friends name's here. You can add more. function checkOkToLetIn(name) for i = 1,#permission do -- convert strings to all upper case, otherwise we will let in, -- "Username," but not, "username," or, "uSERNAME." -- Why? Because, "Username," is how it is spelled in the permissions. if (string.upper(name) == string.upper(permission[i])) then return true end end return false end local Door = script.Parent function onTouched(hit) print("Door Hit") local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil ) then -- a human has touched this door! print("Human touched door") -- test the human's name against the permission list if (checkOkToLetIn(human.Parent.Name)) then print("Human passed test") Door.Transparency = 0.7 Door.CanCollide = false wait(4) -- this is how long the door is open Door.CanCollide = true Door.Transparency = 0 else human.Health= 0 -- delete this line of you want a non-killing VIP door end end end script.Parent.Touched:connect(onTouched)
Chat with our AI personalities
If you go to free models, and type "VIP door" it will show a bunch of models. Next when you spawn a door, open the door vip script. Then read until you see names of the people in pink/purple. Delete them, and then add yours and/or friends.
If you want to make a VIP door, you have to have a script. To script you must go into roblox studio by clicking the first button to the left of the 'insert' button. Then, go into the brick you want, click 'insert...object' from the toolbar, select script. Scripting is a whole different story. I recommend reffering to the roblox wiki for scripting issues. If you have any questions, please contact builderman, or the ROBLOX wiki. Or you could go on Tools move the mouse onto the view tool then explorer and it will give you workspace then open up workspace find the door and double click it and it will show you scripts type your name in then hey-presto its done
With a little knowledge of how to script, you can add your own commands to a VIP commands script. If you don't know how to script, you can learn by following the tutorials on the Roblox wiki. There are also numerous fan-created tutorials on the Internet which you can find by searching Google for "Roblox Scripting Lessons".
First upload a t-shirt that you want to be the VIP shirt. Then, insert a t-shirt VIP commands script from the free models. Finally, edit the script so the texture ID of the t-shirt is the same as the texture ID required to make someone a VIP in the script.
You can find many different VIP t-shirt doors on the Roblox free models. Most doors will have instructions in their source code explaining how to configure them to work with your t-shirt. You can also find a tutorial on how to make a VIP shirt on the Roblox Wiki.