Tool doesn't have animations

Hey, I had a question… I’ve watched quite a few tutorials on adding animations to Tools, but the tool always remains static in the hand even after adding the M6D motor.

How it should look:

How it looks:

This is the script I use to attach the M6D (It’s worth noting that it was from the tutorial that helped me progress the most)

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local M6D = Instance.new("Motor6D", char["Right Arm"])
		M6D.Name = "ToolGrip"
		
		char.ChildAdded:Connect(function(child)
			if child:IsA("Tool") and child:FindFirstChild("BodyAttach") then
				M6D.Part0 = char["Right Arm"]
				M6D.Part1 = child.BodyAttach
				print("ok")
			end
		end)
	end)
end)

1 Like

ahem wrong topic. Forum Questions should be only used for asking questions directly about the Developer or Roblox forums.

To clarify, you want to make it so the ‘Tool’ itself has animations, and not just the player’s body?

Where is the code to the animation script? Show me the explorer.
You need to weld the Tool part to a certain bodypart of a player’s Character (using Motor6D) and then do the animation. It doesn’t matter where you weld them. You can even weld them in the leg, and you can use the Animation Editor to move the tool.

I am not leaving until this guy fixes the most simplest problem

The category? I can just flag him anyways. I’ve flagged like 10 off topic posts already

Doesn’t matter. It’s not like the post’s getting deleted. It’s just gonna get changed to #help-and-feedback:scripting-support .

I was talking about the problem itself, the problem about his Tool not having animations

Regarding the topic, I apologize, it’s my first time posting something, which one would be correct?

About my issue:
Yes, I want the “Tool” to have its own animation along with the player’s body

What do you mean by Animation Script? I only use the AnimationTrack to play it at the moment of making Hits (Clicks)

(Regarding the last thing you mentioned, I already know how to add the “Tool” to the Animator, the problem is that the “Tool” does not play its animation but the player does)

Wait the OG is replying wait til they see this

Mind showing me the explorer??? I’m pretty sure Motor6D weapons can be animated

#help-and-feedback in scripting support

you mean a picture of the explorer with the ‘Tool’ in it?
image
image

I think I know now. Try welding the parts of the tool with Motor6D, then try making another animation and see if it works.

This works for me since I use Motor6D

1 Like

so i found that when i see the gameplay footage everything is working nicely right? but the grip of the tool is on the incorrect position.

CMIIW

so another guy has this problem and found a solution and he uses the fe gun kit tool grip script:

local Tool = script.Parent

function Equipped()
	local Character = Tool.Parent
	local RightArm = Character:FindFirstChild("Right Arm")
	if RightArm then
		local RightGrip = RightArm:FindFirstChild("RightGrip")
		if RightGrip then
			local Motor6D = Instance.new("Motor6D")
			Motor6D.Part0 = RightGrip.Part0
			Motor6D.Part1 = RightGrip.Part1
			Motor6D.C0 = RightGrip.C0
			Motor6D.C1 = RightGrip.C1
			Motor6D.Parent = RightArm
			Motor6D.Name = "Handle"
			RightGrip:Destroy()
		end
	end
end

function Unequipped()
	local Motor6D = Tool.Parent:FindFirstChild("Handle")
	if Motor6D then
		Motor6D:Destroy()
	end
end

Tool.Equipped:Connect(Equipped)
Tool.Unequipped:Connect(Unequipped)

simply because the right grip doesnt work with animations, so the solution is to create a new motor6d replacing the right grip, CMIIW.

I don’t think he used RightGrip for welding though. Motor6D name also doesn’t matter

wdym? i thought rightgrip is created automatically

What I’m saying is that he can just make a separate Motor6D and attack the Handle to any body parts that is also welded to the Motor, then he can perform animations. Learned this through HowToRoblox

It’s just that the animations are already done along with the tool’s animations, the problem is that the “tool” animations don’t load, it just stays still

Do you think that could solve the problem?

have u tried using the script i tell u?

I tried it, but the exact same thing keeps happening

did u weld all the other tools with motor6d