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

Creating a character for teams only lasting for once, help?

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.

1 comment

0

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

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.