Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Ragdoll Script Not Working When Killed, Breaks Apart?

Hello! I've recently been having trouble with a ragdoll script. The main ragdoll script itself is fine, but I have a short problem. A script I have in serverscriptservice that kills you (aka ACTIVATES the ragdoll) doesn't work when you use it that way. I can reset and the ragdoll would function perfectly fine. However, if I press my ragdoll button or press R, it doesn't work. I'll be a ragdoll for a second or 2, then break apart.

My script is as simple as this:

game.ReplicatedStorage.Ragdoll.OnServerEvent:Connect(function(plr)
	plr.Character.Humanoid.Health = 0
end)

Any help?

2 comments

0

You need to show your ragdoll script.

0

It isn't mine, it's this one R15 script that shows up first when you look it up.

1 answer

this should stay the same

game.ReplicatedStorage.Ragdoll.OnServerEvent:Connect(function(plr)
	if plr.Character.Humanoid.Health = 0 then
end)

And in a second script we will make the join stay connected make this script in server script service


game.Players.PlayerAdded:Connect(function(plr)
plr.Character.Humanoid.BreakJointsOnDeath = false
end)

7 comments

0

Please Accept My Answer If It Worked

0

There is an error at the = sign, can you fix it? I don't script, as my developer made this and IDK how to fix it.

0

Ok so forget my addition to the code just leave it as keeping the player humanoid to 0 and make a separate script in server script service with my addition

0

Also I upvotes as this is relevant and I’m on my phone so sorry for any mistakes

0

Please look at the updated version

0

It still didn't work...

0

Ok but as this works for me and I don’t really work with the player part of scripting I can’t help as much as that very sorry maybe look it up on YouTube?

This discussion is preserved as it was. New answers, comments, and votes are closed.