Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Break Character Joints Without Dying?

Asked by 5 years ago

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

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

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

0
It worked, but the character dies after I break the joints constructionmiller 44 — 5y
0
its because when the head or torso is detached or removed from the character, the character dies i think User#23365 30 — 5y
0
But is there a way to make the joints break without making the character die? constructionmiller 44 — 5y
0
well you could do another event or trigger for your ragdoll, instead of the died event which i think your using User#23365 30 — 5y
View all comments (8 more)
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 constructionmiller 44 — 5y
0
well i guess try rescripting it so it doesnt need to break the player's joints User#23365 30 — 5y
0
Ok constructionmiller 44 — 5y
0
The ragdoll occurs on death ao why would it matter :p DaggerOf_Fly -24 — 5y
0
roblox doesnt have a built in ragdoll function User#23365 30 — 5y
0
and you can make script to ragdoll without dying User#23365 30 — 5y
0
But you want it to happen once the player dies which is why its under humanoid.died DaggerOf_Fly -24 — 5y
0
he isnt using the died event User#23365 30 — 5y
Ad
Log in to vote
0
Answered by
3ora 54
5 years ago

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

Log in to vote
-1
Answered by 5 years ago

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

Answer this question