I'm trying to replicate the rag doll script in broken bones where as soon as you start falling it rag dolls you, i will include my code so far and help would be appreciated.

local character = script.Parent
 
local humanoid = character:WaitForChild("Humanoid")
 
humanoid.FallingDown:Connect(function ragdoll(character)
	local hum = character:FindFirstChild("Humanoid")
	local rarm = character:FindFirstChild("Right Arm")
	local larm = character:FindFirstChild("Left Arm")
	local rleg = character:FindFirstChild("Right Leg")
	local lleg = character:FindFirstChild("Left Leg")
	local head = character:FindFirstChild("Head")
	local torso = character:FindFirstChild("Torso")
	
	character.Torso["Right Shoulder"]:Remove()
	character.Torso["Left Shoulder"]:Remove()
	character.Torso["Right Hip"]:Remove()
	character.Torso["Left Hip"]:Remove()
end)

2 comments

0

XD

0

Why are you removing the parts of the char?