function addRag(char)
for i, v in char:GetDescendants() do
if v:IsA("Motor6D") then
local socket = Instance.new("BallSocketConstraint")
socket.Parent = v.Parent
local at1 = Instance.new("Attachment")
local at2 = Instance.new("Attachment")
at1.Name = "at1"
at2.Name = "at2"
at1.Parent = v.Part0
at2.Parent = v.Part1
char.Head.CanCollide = true
char.LeftHand.CanCollide = true
char.RightHand.CanCollide = true
char.RightFoot.CanCollide = true
char.LeftFoot.CanCollide = true
char.UpperTorso.CanCollide = true
char.LowerTorso.CanCollide = true
char.LeftUpperLeg.CanCollide = true
char.RightUpperLeg.CanCollide = true
char.LeftUpperArm.CanCollide = true
char.RightUpperArm.CanCollide = true
char.LeftLowerLeg.CanCollide = true
char.RightLowerLeg.CanCollide = true
char.LeftLowerArm.CanCollide = true
char.HumanoidRootPart.CanCollide = true
at1.CFrame = v.C0
at2.CFrame = v.C1
socket.Attachment0 = at1
socket.Attachment1 = at2
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
v.Enabled = false
end
end
end
task.wait(3)
addRag(game.Workspace.cooltayfa)
this is the whole script but can someone tell me why do i suddenly start flying upwards i dont get it