local ContextActionService = game:GetService("ContextActionService")
local humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
local function jumpAction(_, userInputState)
if userInputState == Enum.UserInputState.Begin then
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end
ContextActionService:BindAction("Jump", jumpAction, false, Enum.KeyCode.Space)