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

When humanoid dies team changes?

Asked by 10 years ago

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

1 answer

Log in to vote
1
Answered by 10 years ago

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.

0
... ya im not that good of scripter sooooooo i dont know how to do that Opptitronica 0 — 10y
Ad

Answer this question