local Player = script.Parent.Parent wait(.5) local Character = Player.Character local Humanoid = Character.Humanoid local Mouse = Player:GetMouse() Mouse.Button1Down:Connect(function() Humanoid:LoadAnimation(script.Parent.Animation):Play() end)
local Player = game.Players.LocalPlayer
Correct me if I'm wrong. You've provided no imagery of where your script is and what type of script it is.