Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Certain Team can certain team cant walk through Part any help?

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

0

never mind i figured it out

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.