I was testing on my script, I did use the Died
event. Here is the Code I used:
local hum=game.Players.LocalPlayer.Character.Humanoid hum.Died:connect(function() hum.Parent:Destroy() end)
The character does destroy, However, The Character Does load after 5 seconds.
This is because the Died
event activates the LoadCharacter
method of the player. So the easiest way to simulate a 'permadeath' would be setting the CharacterAutoLoads
Property of the player to false when they die.
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) plr.CharacterAutoLoads = false local hum = char:WaitForChild('Humanoid') local connect connect = hum.Died:connect(function() plr.Character:Destroy() connect:disconnect() end) end) end)