Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Change grip weld to motor6d?

Asked by
Ribasu 127
5 years ago
Edited 5 years ago

Hi, I'm having a hard time animating tools; I have found the following piece of advice:

you will need to convert the grip weld to a motor6d

You will need to convert it to a motor6d with a script every time the tool is equipped, or the animation you make won’t run.

But I am confused on how to change the grip weld of my tool to a motor6d and what are the consequences of doing so?

1
I was just working on this myself and I found out that if you go back into animationeditor and change the priority to movement then the animation would work seith14 206 — 5y
0
dude you are a lifesaver; you didn't answer this question for me but you answered another i had asked a few hours ago Ribasu 127 — 5y

1 answer

Log in to vote
2
Answered by 5 years ago

Hello there, i'm sorry i can't write the entire tutorial here since it has a 10,000 Characters limit

I have however ported it to Pastebin raw

It may not look neat so read it as comfortable as you are.

The Pastebin

it is a entire tutorial to your problem and many others have fun

local Tool = script.Parent

WeldName = "RightMotor6DGrip"---Change the name here if you'd like to

function Tool_Equipped(M)
    --print("Equipped")
    plr_char = script.Parent.Parent
    Right_Arm = plr_char:FindFirstChild("Right Arm")
    Right_GripW = Right_Arm:WaitForChild("RightGrip",2)
    Right_Weld = Instance.new("Motor6D")
    Right_Weld.Part0 = Right_GripW.Part0
    Right_Weld.Part1 = Right_GripW.Part1
    Right_Weld.C0 = Right_GripW.C0
    Right_Weld.C1 = Right_GripW.C1
    Right_Weld.Parent = Right_Arm
    Right_Weld.Name = WeldName
    Right_GripW:Destroy()
end

function Tool_Unequip()
    Right_Weld:Destroy()
    print("Unequipped")
end



Tool.Equipped:connect(Tool_Equipped)

Tool.Unequipped:connect(Tool_Unequip)

Peace out <3

0
make a script put the code in and put the script inside the tool make sure there is one part named Handle Omega_bs 40 — 5y
0
I'm still reading your answer, but the huge amount of effort you put in is clear! Thanks <3 Ribasu 127 — 5y
0
Thank you :) Omega_bs 40 — 5y
1
Omega, you're my hero. Been looking for exactly this. No, I'm serious. You're my hero. I'm able to replace that pesky weld now. HURRAH! dionant 23 — 5y
View all comments (3 more)
0
np Omega_bs 40 — 5y
0
I am disappointed in you, omega. It did not work for me asadefa 55 — 5y
Ad

Answer this question