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

How to put only me into a team?

Asked by 8 years ago

function Enter(newPlayer) if newPlayer:IsInGroup(1026680) then newPlayer.TeamColor=script.Parent.TeamColor end end

game.Players.ChildAdded:connect(Enter)

So, I have 3 teams, and into one of them players from my group get in. What do I need to change in this script, so that only I could join the other team, yet I am also a member of this group?

Answer this question