I am new to Lua so please help me. I was working with this but it was not working:

local click = game.Workspace.Part.ClickDetector
local plr = game.Players.LocalPlayer
local hum = plr.Character.Humanoid
local animation = game.ReplicatedStorage.Animation
local anim_start = hum:LoadAnimation(animation)
current = anim_start
click.MouseClick:Connect(function()
	current:Play()
end)

1 comment