Is there a function for this purpose?
✓ ANSWER ACCEPTED
Whenever a player respawns the script fires?
1 answer
✓ Accepted answer
Be aware that I am not a professional scripter.
It's simple, really.
You can use the CharacterAdded function.
local function onCharacterAdded(character)
print(character.Name .. " has spawned") --Insert own code
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You need to connect that function to an event: Player.CharacterAdded:Connect(onCharacterAdded). Or you could make the function on the spot: Player.CharacterAdded:Connect(function(character) end).
Thanks.