my shift to sprint is working but whenever i try to add an animation it keeps bugging, as in when i stop movement but still hold shift its doing the run animation
my script :
mouse.KeyDown:connect(function (key) -- Run function
key = string.lower(key)
if string.byte(key) == 48 then
running = true
local keyConnection = mouse.KeyUp:connect(function (key)
if string.byte(key) == 48 then
running = false
end
end)
for i = 1,5 do
game.Workspace.CurrentCamera.FieldOfView = (70+(i2))
wait()
end
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 35
repeat wait () until running == false
keyConnection:disconnect()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
for i = 1,5 do
game.Workspace.CurrentCamera.FieldOfView = (80-(i2))
wait()
end
end
end)
what run animation i want to put : 98975698395729
** You are now Level 2! **