i'm trying to make it so that it only detects leftshift as a valid input but it just keeps detecting any input and it's really annoying idk how to fix it.
RS.Heartbeat:Connect(function(player)
if Debounce then return end
UIS.InputBegan:Connect(function(input, gameProcessedEvent)
if gameProcessedEvent then return end
if input.KeyCode == keyBind then
if not Running then
Debounce = true
bindable:Fire()
startRun()
if not keyBind then
return end
end
else
Anim:Stop()
Humanoid.WalkSpeed = 16
UIS.InputEnded:Connect(function(input, gameProcessedEvent)
if Anim.IsPlaying and Humanoid.MoveDirection.Magnitude < 0.5 then
Anim:Stop(0.25)
Humanoid.WalkSpeed = 16
end
end)
end
task.wait(1)
Debounce = false
end)
end)
** You are now Level 2! **