When a player joins the game and they are on a certain team all of their tools get removed.
Thank you.
When a player joins the game and they are on a certain team all of their tools get removed.
Thank you.
TeamChoices = {"Gray","Red"} -- Just put the color of the team exactly
game.Players.PlayerAdded:connect(function(plr)
plr.TeamColor = TeamChoices[math.Random(1,TeamColor)]
a = plr:WaitForDataReady("Backpack"):GetChildren
for i = 1,#a do
a[i]:Destroy()
end
end)
As you can see # means number of, the rest seems self explanatory.
This discussion is preserved as it was. New answers, comments, and votes are closed.