Animation not playing and not displaying errors in output?

When the tool is activated (clicked when tool is equipped), the animation doesn’t play:

local Players = game:GetService("Players")

local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

local AnimationsFolder = Pan:WaitForChild("Animations")

local PanAttackAnimation = AnimationsFolder:WaitForChild("PanAttackAnimation")

local function PanActivated()

1 Like

Is the tool priority is set to action?

That was the problem. I swear it used to work without setting an animation priority?


Any reason why you’re loading a new animation track each time the tool is activated? Load the animation track once outside of the function and play that instead.