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

OnSpawn() command (after dying)?

How can I make a command for when the player spawns after his death?

1 comment

0

Im not a pro at roblox LUA but, you could time how long it takes for someone to respawn, then do the death function, wait the respawn time, and then the command!

1 answer

✓ Accepted answer

The only one that I can think of is CharacterAdded()

Player = game:GetService("Players").LocalPlayer
Player.CharacterAdded:connect(function(character)
	--Do stuff to character here
end)

2 comments

0

Also make sure that this is inside of a Local Script.

0

Thanks!

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