Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

OnSpawn() command (after dying)?

Asked by
RoyMer 301 Moderation Voter
8 years ago

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

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! yogipanda123 120 — 8y

1 answer

Log in to vote
1
Answered by
Mr_Octree 101
8 years ago

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)
0
Also make sure that this is inside of a Local Script. Mr_Octree 101 — 8y
0
Thanks! RoyMer 301 — 8y
Ad

Answer this question