Disable WASD Keys on LocalScript but Without Cancelling the WalkSpeed?

How do i make it that when my character jumps, disable WASD Keys so the direction where he jumped to isn’t Interrupted but without Cancelling/interrupting the speed and location he jumped to?

i tried Controls functions, but cancel the walkspeed, heres my script:

local character = script.Parent 

local humanoid = character:WaitForChild("Humanoid")

humanoid.Jumping:Connect(function(isActive)
	script.Parent.Humanoid.AutoRotate = false


	
end)
humanoid.Running:Connect(function(isActive)
	script.Parent.Humanoid.AutoRotate = true

	


end)

I think if you use contextactionservice and bind an action to the WASD keys, it will stop the player from moving. Unbind the action when you wanna move again

https://developer.roblox.com/en-us/api-reference/function/ContextActionService/BindAction

1 Like