here is the script:
local InputService = game:GetService("UserInputService") local Running = false local humanoid = script.Parent.Humanoid local moving local WalkAnim = script.Parent.Animate.walk.WalkAnim.AnimationId local RunAnim = game.Lighting.Anim local RunAnimLoaded = humanoid:LoadAnimation(RunAnim) local Running = false humanoid.Running:connect(function(speed) if speed > 0 then moving = true humanoid.Parent["Left Leg"].BrickColor = BrickColor.new("Really red") elseif speed < 1 then moving = false humanoid.Parent["Left Leg"].BrickColor = BrickColor.new("Fossil") end end) InputService.InputBegan:connect(function(key) if key.KeyCode == Enum.KeyCode.LeftShift then if Running == false then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25 Running = true if moving == true then RunAnimLoaded:Play() elseif moving == false then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 Running = false RunAnimLoaded:Stop() end else game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 Running = false RunAnimLoaded:Stop() end end end)
when i stop walking my character is kind off still playing the animation, until i press LeftShift again. Whats happening?