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.
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
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