I have a working "Idle" animation for my gun when I am testing it on Studio, but when I play the game on Roblox, it isn't working. here is the code I have for it in a local script in the tool:~~~~~~~~~~~~~~~~~ local plr = game:GetService("Players").LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local h = char:WaitForChild("Humanoid") local anim = h:LoadAnimation(script.Parent:WaitForChild("Animation3"))
local tool = script.Parent
tool.Equipped:Connect(function() anim:Play() end)
tool.Unequipped:Connect(function() anim:Stop() end)

6 comments
Do you own the animation yourself? If you don't, that might be causing the issue.
i do
Do you have any custom animations loaded onto your avatar? Perhaps they are taking a higher animationpriority than the tool's? I don't have any better ideas than that atm.
hmmm, good suggestion, ill check right now
No other animations taking priority, maybe there is a better way to script it?
The same thing happens to me.