ye when a character is destroyed not killed how do i make it respawn after 3 seconds
player:LoadCharacter() method should work.
im trying that but idk how to detect when the players character is destroyed, if i used humanoid.Died it doesnt detect
Can you please explain how do you destroy your character? If that execute with script, will it be simplier to just respawn after destroying him?
like:
Character:Destroy()
wait(3)
LoadCharacter()
no so its like a game where everyone is a block, and if u touch a block who is smaller than u u absorb them and get bigger, while the smaller block is destroyed so in the script where they are destroyed would i just wait 3 secs and load the character?
kind like agar.io but blocks in 3D, im confused since in Players service you have the property CharacterAutoLoad with a value. its already set at 5*.
respawn time is how long u have for the character to respawn.
local function CharacterSetup(Plr, Char)
Char.Humanoid.Died:Once(function()
task.wait(3)
Plr:LoadCharacter()
end)
end
game:GetService("Players").PlayerAdded:Connect(function(Plr)
repeat task.wait() until Plr.Character
CharacterSetup(Plr, Plr.Character)
Plr.CharacterAdded:Connect(function()
CharacterSetup(Plr, Plr.Character)
end)
end)
Humanoid.Died isnt something u only write once, u should write it whenever new character loads
it is set at 3 and auto loads is on
wait nvm i just fixed it by loading the character in the script it gets destroyed in
So, you just created like my advise? Just loading character after 3 seconds it destroyed in the same script?
ye basically lemme just give u solution
the respawn time is set at 5 shown in the pic and the characterautoload is set to true.
jus look at ur explorer and click the “Players” service and then look at you’re properties
jus use the script u were given by @ednerok0end