Looping Humanoid:ChangeState to Ragdoll cause death to fire multiple times

Used the following to catch when the player humanoid died.

System Information:
Windows 11 Pro 24H2

2 Likes

Every time you set it to ragdoll doesn’t it break the neck weld causing death? You could change the RequiresNeck Humanoid setting to false.

What’s the entire section of script you are using?
Copy/Paste it here with 3 quotes before and after the script (```) so if formats properly.

2 Likes
while wait() do 
  workspace.MagicLuau.Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll) 
end

For the death logger in StarterCharacterScript

script.Parent.Humanoid.Died:Connect(function()
	print("Died")
end)

Also i don’t think even if it was the neck the humanoid was supposed to repetly fire died events.

1 Like

But what happens when you try my suggestion?
If the neck joint is trying to weld back together every frame while you are setting it to ragdoll every frame this could be the case.

Why in the heck are you setting it to ragdoll every frame anyway?
The Humanoid ChangeState documentation mentions using SetStateEnabled as well.

1 Like

Still happens when RequireNeck is disabled. You can try it too in your place to confirm

1 Like

Click on the link in my previous post to see what the Roblox documentation has to say.
Also look at SetStateEnabled.

1 Like

Mostly happening when using the reset character button.