Trying to make a door that only lets you pass if you have a certain tool. It works in studio, but wont work in game despite the fact I've had it in a script and a localscript. This is the code.
script.Parent.Touched:connect(function(player)
local tool = player.Backpack.Ticket
if tool ~= nil then
script.Parent.CanCollide = false
wait(.5)
script.Parent.CanCollide = true
else
end
end)

1 comment
wth, suppose a part touches this parts script then it will search for the backpack of the part... Wth