I made this cafe and there is a door that only allows certain people in, when I went to test it out, it never worked. Here is the code
--Made by Gangnumstylefan
local sp=script.Parent
function onTouched(hit)
h = hit.Parent.Name
if game.Players.LocalPlayer.Name =="gangnumstylefan" or "Khyrax" or "Player1" then
sp.CanCollide = false
wait(3)
sp.CanCollide = true
end end
script.Parent.Touched:connect(onTouched)
