#ragdoll flying

1 messages · Page 1 of 1 (latest)

proven robin
#

why do i fly when i ragdoll using this script ```function ragdoll.Start(character)
if character:WaitForChild("Ragdoll").Value then return end
character.Ragdoll.Value = true
for i, v in pairs(character:GetDescendants()) do
if v:IsA("Motor6D") then
local a0 = Instance.new("Attachment")
local a1 = Instance.new("Attachment")
a0.Parent = v.Part0
a1.Parent = v.Part1
a0.CFrame = v.C0
a1.CFrame = v.C1
local bsc = Instance.new("BallSocketConstraint")
bsc.Parent = v.Parent
bsc.Attachment0 = a0
bsc.Attachment1 = a1
v.Enabled = false
end

    character.Humanoid.WalkSpeed = 0
    character.Humanoid.JumpPower = 0
end

end