I don't know how to make it so that when someone dies there team changes automatically to white team. Please Help!
✓ ANSWER ACCEPTED
When humanoid dies team changes?
1 answer
✓ Accepted answer
This is not a request site, but here is what you would do.
You need to use the Died Event, which will fire when the humanoid dies
Then, once it died, you need to go to the Player, and a property of the Player is TeamColor, you change Teamcolor the same you would change a BrickColor.
Ex.
game.Players.Player1.TeamColor=BrickColor.new("Really red")
Here is an outline of the code you need (Note: You will need to do some of the coding):
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function()
--Add the Died event here
--Add the line of code where you change the TeamColor
end)
end)
end)
Feel free to PM me on ROBLOX, or comment on my answer, with any questions, concerns, etc.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
... ya im not that good of scripter sooooooo i dont know how to do that