|
| 20 Apr 2014 08:03 AM |
| hello I would like to make games with a VIP room that you can enter with a t-shirt I've been looking for vip doors and the script to fit but still not working it as if someone knows a script would have become easier for me if you also have an instruction upon it is also good without given full instructions |
|
|
| Report Abuse |
|
|
TxOreo1
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 34 |
|
|
| 20 Apr 2014 08:15 AM |
| Use a gamepass and btw it comes in the toolbox under game stuff. |
|
|
| Report Abuse |
|
|
Havemeat
|
  |
| Joined: 08 Jan 2008 |
| Total Posts: 18081 |
|
|
| 20 Apr 2014 08:16 AM |
VIP = { "" } texture = "" -- Put the texture of the tshirt that you would like your robloxian to wear in order to enter the door.
function check(name) for i = 1,#VIP do
if (string.upper(name) == string.upper(VIP[i])) then return true end end return false end
local Door = script.Parent
function onTouched(hit) local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil ) then if human.Parent.Torso.roblox.Texture == texture then Door.CanCollide = false wait(4) Door.CanCollide = true elseif (check(human.Parent.Name)) then Door.CanCollide = false wait(4) Door.CanCollide = true end end end
script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
| |
|