Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

0
never mind i figured it out WillBe_Stoped 71 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

https://wiki.roblox.com/index.php?title=Collision_Filtering_%E2%80%93_Team_Doors

Ad

Answer this question