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

On Team Tool Remover?

Asked by
steev 0
10 years ago

When a player joins the game and they are on a certain team all of their tools get removed.

Thank you.

1 answer

Log in to vote
0
Answered by
HexC3D 830 Moderation Voter
10 years ago
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.

Ad

Answer this question