So I want to know how to make a script for a person who is not in my group. I've designated that group as Enemies/Neutral and put their team colour as red.
Would this work? Or do I need to do something else?
1 | function Enter(newPlayer) |
2 | if newPlayer:IsNotInGroup( 469670 ) then -- I have a feeling the IsNotInGroup is wrong. |
3 | newPlayer.TeamColor = script.Parent.TeamColor |
4 | end |
5 | end |
6 |
7 |
8 | game.Players.ChildAdded:connect(Enter) |
Anyway thanks.
IsNotInGroup() does not exist, but since IsInGroup() returns a bool value, you can do this: if not newPlayer:IsInGroup()