#rightgrip weld not creating for some reason

1 messages · Page 1 of 1 (latest)

icy solar
#
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? 😭

gilded ocean
#

If there's a handle in the tool the hand grabs it

icy solar
#

the hand doesnt grab it in this case

gilded ocean
#

It should auto make it when named Handle

icy solar
gilded ocean
#

You should be able to parent it if there is a Handle with a TouchInterest
If it's parents to the hand and you change the CFrame it should work

merry bloomBOT
#

studio** You are now Level 6! **studio

gilded ocean
icy solar
#

shouldnt the tool be parented to the character?

gilded ocean
#

If you want it to be stuck to the hand you can parent it

#

Not sure if that's ur goal tho

icy solar
#

its just a bug

#

the regular behavior of equipping a weapon is that a rightgrip weld gets created in your right arm

#

that welds the arm and the tool

#

it isnt getting created in my case

gilded ocean
#

Have you exited studio to se eif that files it yet?

icy solar
gilded ocean
#

Ooooh

icy solar
#

I FOUND THE FIX!!!

#

i dont want anyone else to suffer too

#

after the ragdoll ends i forgot to rename the motor6ds to their original names

#

and apparently, the games system searches for the torso's Right Shoulder's part1 to add the weld to

#

and i forgot to name the right shoulder

#

which is why the weld wouldnt create

gilded ocean
#

Ah

#

Why did you need to rename the the motors tho

gilded ocean
#

I mean why did you need to rename in the first place

icy solar
gilded ocean
#

Did you delete them earlier?

icy solar
#

i forgot to change the name

icy solar
gilded ocean
#

Glad you found the fix tho

icy solar
#

i replace them with ballsockets

icy solar