Hi, I am currently trying to create a script that plays a stabbing animation I made when you left click the tool. But I cannot figure it out. This script worked when I made a burger eating but it only played on the left hand (hand without the tool). I don't know what I did wrong, can anyone help me out?
local Tool = script.Parent
local player = game.Players.LocalPlayer
repeat wait() until player.Character ~= nil
local xd = player.Character:WaitForChild("Humanoid")
local animation = Tool.Stab
local AnimePlay = xd:LoadAnimation(animation)
Tool.Activated:connect(function(mouse)
AnimePlay:Play()
end)
Tool.Unequipped:connect(function()
AnimePlay:Stop()
end)
