It ran an error and this is my code:
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Hum = player.Character.Humanoid
local animation = script.Animation
local kick = Hum:LoadAnimation(animation)
mouse.Button1Down:Connect(function()
kick:Play()
end)
The script is a LocalScript in
StarterPlayer > StarterPlayerScripts > LocalScript

1 comment
It is redundant to put scripts inside StarterCharacterScripts on this situation, just do the second one