Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Change grip weld to motor6d?

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?

2 comments

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

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

1 answer

✓ Accepted answer

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

7 comments

0

make a script put the code in and put the script inside the tool make sure there is one part named Handle

0

I'm still reading your answer, but the huge amount of effort you put in is clear! Thanks <3

0

Thank you :)

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!

0

np

0

I am disappointed in you, omega. It did not work for me

This discussion is preserved as it was. New answers, comments, and votes are closed.