Hi, I have trouble making a VIP door with a Shirt or T-shirt. Possible, without the shirt or T-shirt, the VIp (POSSIBLY) will get destroyed and people can go in for free. But the problem is, How would I design the shirt or t-shirt to go match the VIP door and go inside?
To find the ID, make sure you're wearing the shirt/tshirt. Go into Studio, click New (Or edit a place), Tools>Test>Play Solo , Open up Explorer>Workspace>Player1>Shirt> OR for tshirt: Workspace>Player1>Shirt Graphic
Tshirt script:
tshirtid = "http://www.roblox.com/asset/?id="--fill in the numbers after the equal sign script.Parent.Touched:connect(function(hit) --this goes inside the brick if hit.Parent:findFirstChild("Humanoid") then if hit.Parent:findFirstChild("Shirt Graphic") then if hit.Parent["Shirt Graphic"].Graphic == tshirtid then script.Parent.CanCollide = false script.Parent.Transparency = 0.7 wait(0.3) script.Parent.CanCollide = true script.Parent.Transparency = 0 else if hit.Parent:findFirstChild("Humanoid") then hit.Parent:BreakJoints() end end end end end)
Shirt script:
shirtid = "http://www.roblox.com/asset/?id="--fill in the numbers after the equal sign script.Parent.Touched:connect(function(hit) --this goes inside the brick if hit.Parent:findFirstChild("Humanoid") then if hit.Parent:findFirstChild("Shirt") then if hit.Parent.Shirt.ShirtTemplate == shirtid then script.Parent.CanCollide = false script.Parent.Transparency = 0.7 wait(0.3) script.Parent.CanCollide = true script.Parent.Transparency = 0 else if hit.Parent:findFirstChild("Humanoid") then hit.Parent:BreakJoints() end end end end end)
-Thank me by accepting this answer/bumping up my reputation!