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()
Humanoid:LoadAnimation(PanAttackAnimation):Play()
end
Pan.Activated:Connect(PanActivated)