Hello. So basically i've made 2 animations. One called HatchetCut and other GrabAnim. So my aim is when i click with "Hatchet" tool an animation called "HatchetCut" should play and when i click my mouse with "Grab" tool equipped, an animation named "GrabAnim" should play. For some reason, when im using any of these tools, the animation of the tool which is first to enter the player's backpack will always play, even if im using the other tool.
Code:
HATCHET:
local pipp = game.Players.LocalPlayer
local Mouse = pipp:GetMouse()
---- Irrelevant Code ----
Mouse.Button1Down:connect(function(key)
local s = pipp.Character.Humanoid:LoadAnimation(script.Parent:findFirstChild("HatchetCut"))
s:Play()
end)
GRAB:
local pipp = game.Players.LocalPlayer
local Mouse = pipp:GetMouse()
---- Irrelevant Code ----
Mouse.Button1Down:connect(function(key)
local s = pipp.Character.Humanoid:LoadAnimation(script.Parent:findFirstChild("GrabAnim"))
s:Play()
end)
So what am i doing wrong?

2 comments
Try putting these inside of a "Equipped" event. It seems like it runs through one time. Maybe adding this to Equipped with redefine what happens when you click everytime you equip the other tool. Let me know if that works
Nope, doesnt work