I know how to make characters for teams, but i have problems when the character dies. When the character dies they go back to their original avatar. I have no idea what to do, i tried doing 'While true do' which well... Roblox studio just dies. I would like if someone could help me Thanks.
COMMUNITY QUESTION
Creating a character for teams only lasting for once, help?
1 answer
There is an event called Humanoid.Died inside the character
game.PlayersAdded:Connect(function(player)
local character = player.Character
character.Humanoid.Died:Connect(function()
player.CharacterAppearanceId = "rbxassetid://" -- Or it is "roblox.com/asset/?id=" Idk
end)
end)
I hope this helps!
1 comment
0
Ok so i may have said it wrong.. "When the character RESPAWNS they go back to their original avatar" yeah sorry...
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Just an FYI, studio is dying with a while true do loop because you need to use wait() or some amount of time in the parenthesis