I need when I press the L key to play an animation.
mouse.KeyDown:connect(function (key)
key = string.lower(key)
if string.byte(key) == l then
running = true
local Humanoid = game.Players.LocalPlayer.Character.Humanoid
local Animation = script.Animation
local Current = Humanoid:LoadAnimation(Animation)
Current:Play()
local keyConnection = mouse.KeyUp:connect(function(key)
if string.byte(key) == l then
running = false
Current:Stop()
end
end)

1 comment
Shouldnt be spaces. But it messed it up when i put the script in here.