So I have a script for a brick, that will only work when a player touches it. However, I only want the script to work if a certain team touches it. I wanted the Prisoners to be the only ones who could use it. (The teams are Prisoners, Guards, and Neutral, if you need that info) I'm not requesting anything, I just wanted to see if someone could tell me how to do it, if they couldn't be bothered to do it themselves.
✓ ANSWER ACCEPTED
How do I make it so that a script will only activate if a certain team touches it?
1 answer
✓ Accepted answer
all you need to do is add in an if statement to check what their team color is. so in pseudo code: if game.Players:FindFirstChild(HIT.Parent.Name).TeamColor == "[TEAMCOLOR]" then -- rest of code
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Awesome. Thanks :D