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