How can i bind the jump key

i want to change the jump key to w and remove the control keys.

i already removed the moving keys using.

local ContextActionService = game:GetService("ContextActionService")
ContextActionService:UnbindAction("moveForwardAction")
ContextActionService:UnbindAction("moveBackwardAction")
ContextActionService:UnbindAction("moveLeftAction")
ContextActionService:UnbindAction("moveRightAction")

but idk how i can rebind the jump key to w and keep the space bar too, so i have 2 jump keys?

1 Like

You should take a look at this documentation: ContextActionService.

It should explain what you’re trying to do.

i looked trough it but it hasnt any information on how i can bind existing functions like moving and jumping to other keys, only about how you can make your own

This could maybe help, it tells you how to rebind the W Key so you can maybe get some input off that: Mouse & Keyboard

Pretty sure it’s in the player scripts and it has the binded keys which you can change not sure where exactly but somewhere in player scripts because I made it so that you press F to jump and n to walk backwards

local ui = game:GetService"UserInputService"
ui.InputBegan:Connect(function(iObj,ignore)
--if ignore then return end
if iObj.KeyCode == Enum.KeyCode.W then
--do stuff
end
end)

Don’t use context action service, unless you are deleting the ControlModule and making your own.

it tells how to rebind it, but not what the function is.

since the unbinding and binding script is local you can just get the players humanoid and change the jump property to true.

so how can i fix that. i already tried using a event to jump but then i cant hold it to keep jumping

what did you change then, i want to know?