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)
If your problem is the right hand not moving, make sure that your animation's Priority is set to something above "Idle". You can change it by importing your animation into Roblox's animation editor plugin, going to Edit > Set Priority > and then "Movement" or "Action" then export you animation to the same animation you imported and it will update.