Add Humanoid:Jump() Action and Remove the Automatic Jumping Function from Humanoid.Jump

As a Roblox developer it is very hard to get more control over the humanoid Jumping mechanic.
Humanoid.Jump should not execute the jump command instead it Should be set when the humanoid prepares to jump and Humanoid:Jump() Is to execute the jump action itself

Here is a use case for my development: I have an animation that plays right before the humanoid is about to jump, which works as

Humanoid.Jumping:Connect(function()
	PrepareJumpAnimation:Play()
	task.wait(1)
	Humanoid:Jump()
	
end)

That way the humanoid will always wait 1 second before it jumps

5 Likes

The code you are providing wouldn’t work regardless unless jumping didn’t make you jump by default.

Does disabling the Jumping state not work for your use case?

I don’t think a property really fits this action, but isn’t it the same thing regardless?

That is exactly what i mean, Humanoid.Jump should not execute the jump command by default.
When Humanoid.Jump is set to true, it fires the jumping event which the developer can code varios events prior the jump. that include if statements, animation playing and other things.
other engines also have it, here is an example:

Disabling the Jumping state wont fire the jump at all. so it doesnt help also it needs the event to detect when humanoid wants to jump

3 Likes