|
| 31 May 2011 04:48 PM |
Does anybody have a working T-Shirt VIP door I have a script but it doesnt work so can you help?
local user = "" -- change this to the name of the person the personal door belongs to local shirt = "455656" -- change this to the t-shirt's asset ID
local door = script.Parent local doorTransparency = door.Transparency
function onTouched(hit) local character = hit.Parent
if character:FindFirstChild("Humanoid") then if string.lower(hit.Parent.Name) == string.lower(user) or hit.Parent.ShirtGraphic.Graphic == shirt then script.Parent.CanCollide = false script.Parent.Transparency = 0.4
wait(4) -- The length of time you want the door to be open for
script.Parent.CanCollide = true script.Parent.Transparency = parent_transparency else hit.Parent:BreakJoints() -- remove this line if you want a non-killing door end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 31 May 2011 04:53 PM |
Asset id can't be just numbers, has to be this:
http://www.roblox.com/asset/?id= then you would put the numbers after the = |
|
|
| Report Abuse |
|
|
|
| 31 May 2011 06:36 PM |
| Well I did that but it still doesnt work D: |
|
|
| Report Abuse |
|
|