script :
--startercharacterscripts
local hum = script.Parent:WaitForChild("Humanoid")
hum.BreakJointsOnDeath = false
hum.Died:Connect(function()
for index,joint in pairs(script.Parent:GetDescendants()) do
if joint:IsA("Motor6D") then
local socket = Instance.new("BallSocketConstraint")
local a1 = Instance.new("Attachment")
local a2 = Instance.new("Attachment")
a1.Parent = joint.Part0
a2.Parent = joint.Part1
socket.Parent = joint.Parent
socket.Attachment0 = a1
socket.Attachment1 = a2
a1.CFrame = joint.C0
a2.CFrame = joint.C1
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
joint:Destroy()
end
end
end)
Watch video How to create Ragdoll? - Roblox Studio Tutorial #9 online, duration hours minute second in high quality that is uploaded to the channel fil1pex 28 August 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 32 times and liked it 1 visitors.