local function rgdl(ch : Model,r : boolean)
if r == true then
ch.Humanoid.RequiresNeck = false
for _,i in pairs(ch:FindFirstChild("Torso"):GetChildren()) do
if i:IsA("Motor6D") then
local bs = Instance.new("BallSocketConstraint")
local a1 = Instance.new("Attachment")
local a2 = Instance.new("Attachment")
a1.Parent = i.Part0
a2.Parent = i.Part1
a1.Name = "a1"
a2.Name = "a2"
a1.CFrame = i.C0
a2.CFrame = i.C1
bs.Attachment0 = a1
bs.Attachment1 = a2
bs.Parent = i.Parent
i:Destroy()
end
end
ch.Humanoid.PlatformStand = true
else
ch.Humanoid.PlatformStand = false
for _,i in pairs(ch:FindFirstChild("Torso"):GetChildren()) do
if i:IsA("BallSocketConstraint") and i.Attachment0.Name == "a1" then
local bs = Instance.new("Motor6D")
bs.Part0 = i.Attachment0.Parent
bs.Part1 = i.Attachment1.Parent
bs.C0 = i.Attachment0.CFrame
bs.C1 = i.Attachment1.CFrame
bs.Parent = i.Parent
i.Attachment0:Destroy()
i.Attachment1:Destroy()
i:Destroy()
end
end
end
end
after rgdl(true) gets called, when you equip the tool it wont create the RightGrip weld connecting the tool and right arm
any help? 😭
** You are now Level 6! **