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

How do I check if the player respawned?

I'm currently working on an avatar system but I don't know how do I check if the player respawned!

1 comment

0

Effort

3 answers

✓ Accepted answer

For this you'll need to utilize the PlayerAdded and CharacterAdded event on the server end to achieve this.

Here's an example.

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(AddedPlr)
    AddedPlr.CharacterAdded:Connect(function()
	print(AddedPlr.Name, 'has spawned!.')
	end)
end)

Hope this could be any help for you.

Player.Character.Humanoid.Died or Player.CharacterAdded

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