how do i make it so I flop on the ground and can’t move
https://gyazo.com/63a5ff61e908bac149a43e795864d394
local repstorage = game:GetService("ReplicatedStorage")
repstorage.RagDoll.OnServerEvent:Connect(function(Player)
local Character = Player.Character
for _, v in pairs(Character:GetDescendants()) do
if v:IsA("Motor6D") then
local a0, a1 = Instance.new("Attachment"), Instance.new("Attachment")
a0.CFrame = v.C0
a1.CFrame = v.C1
a0.Parent = v.Part0
a1.Parent = v.Part1
local b = Instance.new("BallSocketConstraint")
b.Attachment0 = a0
b.Attachment1 = a1
b.Parent = v.Part0
v:Destroy()
Character.HumanoidRootPart.CanCollide = false
end
end
end)