I made a post recently about making a toggelable ragdoll, it works fine and everything is perfect so I tried to set it in action and set BreakJointsOnDeath = false expecting my player to not refresh if I reset but unfortunately my character does refresh and I get respawned.
script:
-- >>: Gripping
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
repeat wait() until workspace[player.Name]
local humanoid = character:WaitForChild("Humanoid")
if humanoid then
humanoid.BreakJointsOnDeath = false
humanoid.Died:Connect(function()
-- player died ragdoll
RM.Ragdoll(player)
SH.AddStatus(player, {"Gripable", "BoolValue", true})
end)
end
end)
end)
I’m using a library that has a Ragdoll and unragdoll function if you need the code ill reply to you with the code.
I was looking around the forum and youtube see if any people have been doing something like im doing and i stumbled across this video, He seems to use BreakJoinsOnDeath = false and his character does not load, I copied all the scripts that he gave in his description and my character doesn’t refresh anymore but I cant seem to find a difference between what im doing and what he’s doing he’s using BreakJoinsOnDeath and im also using it
I’m pretty sure when the humanoid’s state is changed to Dead they will respawn automatically.
There are a few workarounds for this like disabling humanoid Dead state completely on server or disabling Players.CharacterAutoLoads like @BenMactavsin mentioned.
Keep in mind if you disable Dead state Humanoid.Died event probably won’t fire. You should check for humanoid’s health instead if you choose this method.
You can then respawn the player whenever you want with Player:LoadCharacter()
EDIT: The state is called Dead, not Died. My mistake.