How do you make a owner only door and a game pass door combined as one. I am having trouble with this as I am building a fort.
function g(p) local hum = p.Parent:findFirstChild("Humanoid") if (hum ~= nil) then if game.Players:findFirstChild(hum.Parent.Name).Name == "danielsarabia11" then script.Parent.CanCollide = false script.Parent.Transparency = 0.5 wait(0.5) script.Parent.CanCollide = true script.Parent.Transparency = 0 else hum:TakeDamage(100) -- IF YOU PLAYER TO DIE IF IT IS NOT YOU, IF YOU DONT WANT IT THEN DELETE THIS LINE AND THE "else" end end end script.Parent.Touched:connect(g)
** SCRIPT MUST BE INSIDE PART**