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

How do I make a script that resets, and changes everyones team at the end of a round?

Asked by 10 years ago

I need to have a script that, when a round ends, resets everyone, and changes there team to a Neutral, whose spawn point is in the lobby. So How would I make it so that they get reset, and there teams change?

1 answer

Log in to vote
0
Answered by
Hybric 271 Moderation Voter
10 years ago
local fx = game.Players:GetChildren()
local s = math.random(1, #fx)
fx[s].Character.Humanoid.Health = 0
fx[s].TeamColor = BrickColor.new("Bright green") -- Change Neutral Team Color to Bright Green
Ad

Answer this question