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)
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.
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)
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)
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