So, Im trying to make a script where if you walk through a Part and you are on a team called "Officials" you can walk through the door, but if u are on the other team called "Fans" u cannot walk through it~~~~~~~~~~~~~~~~~ script.Parent.Touched:connect(function(hit) if hit.Parent:IsA("Player")and hit.Parent.LocalPlayer.Teams == "Officials" then script.Parent.CanCollide = false wait(.5) script.Parent.CanCollide = true if hit.Parent.Teams == "Fans" then script.Parent.CanCollide = true end end end
This is what i tried to make

1 comment
never mind i figured it out