UIS.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.LeftShift then
hum.WalkSpeed = 26
anim:Play()
end
)
UIS.InputEnded:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.LeftShift then
hum.WalkSpeed = 16
anim:Stop()
end
)
and it all works great. But the problem is that whenever the player presses the LeftShift Key, the animation will play without the player moving. Any ways to around this?