Player refreshing even if i set BreakJointsOnDeath = false

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.

Any help is appreciated.

You can set Players.CharacterAutoLoads to false.

That just makes the character never load, Am I supposed to make a custom character loading script?

Well setting that to false will force you to use Player:LoadCharacter() somewhere in your code everytime you want player to respawn.

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.

1 Like

Did you try to uncomment the lines 44 to 46 in RagDolledScript?

If I do that the character resets after 5 seconds because BreakJointsOnDeath is set back to true