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

Break Character Joints Without Dying?

Hello, I'm trying to create a script which transforms the player in a ragdoll, but when the script runs, the character doesn't fall on the ground even with the ragdoll effect applied. Is there a way to break the character's joints without needing to kill the character, so I can make it fall on the ground?

I don't think I need to post the entire ragdoll script here though, since I only want to break the character's joints, like when the character dies.

3 answers

✓ Accepted answer

You can use the :BreakJoints() function, which you break welds and other joints, like in a player's character such as this example:

local myModel = workspace.Model

myModel:BreakJoints()

though the object descendants of the model wouldnt seem to break apart if their anchored

12 comments

0

It worked, but the character dies after I break the joints

0

its because when the head or torso is detached or removed from the character, the character dies i think

0

But is there a way to make the joints break without making the character die?

0

well you could do another event or trigger for your ragdoll, instead of the died event which i think your using

0

No, I'm using a server script to fire an event that commands the client to do the ragdoll, but it's the break joints that is killing the character

0

well i guess try rescripting it so it doesnt need to break the player's joints

0

Ok

0

The ragdoll occurs on death ao why would it matter :p

0

roblox doesnt have a built in ragdoll function

0

and you can make script to ragdoll without dying

0

But you want it to happen once the player dies which is why its under humanoid.died

0

he isnt using the died event

Create a weld for every object involving the player. then unanchor the player.

game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function() game.Players.LocalPlayer.Character.LeftArm:BreakJoints() end

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