Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

When humanoid dies team changes?

I don't know how to make it so that when someone dies there team changes automatically to white team. Please Help!

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.

1 comment

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.