|
| 14 Nov 2016 07:52 PM |
Basically the title.
For example, if someone dies, I want them to be 'dead' longer than it currently is, so I can have a sort of death sequence. |
|
|
| Report Abuse |
|
|
Thedagz
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 798 |
|
|
| 14 Nov 2016 07:56 PM |
local respawnDelay = 5 game.Players.CharacterAutoLoads = false game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) -- find the humanoid, and detect when it dies local humanoid = character:FindFirstChild("Humanoid") if humanoid then humanoid.Died:connect(function() wait(respawnDelay) player:LoadCharacter() end) end end) player:LoadCharacter() -- load the character for the first time end)
http://wiki.roblox.com/index.php?title=API:Class/Player/LoadCharacter |
|
|
| Report Abuse |
|
|
|
| 14 Nov 2016 07:57 PM |
oooh, I see now.
Thank you.
|
|
|
| Report Abuse |
|
|