Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i detect when someone is jumping?

Theres no welds for that so Im kinda confused

2 comments

0

You could always use a button pressed function, which in this case would be spacebar.

0

Oh good idea thanks

1 answer

✓ Accepted answer

The Humanoid object has an event called Jumping and an event called StateChanged

Humanoid.Jumping

This event fires whenever the Humanoid jumps. It's a really simple event that doesn't really need any extra code, but it can be inefficient with the firing

Humanoid.StateChanged

This event fires whenever the state of the humanoid changes. Some examples of states would be Running, Swimming, FreeFalling, and Jumping. This event does require some extra code to tell when the humanoid is jumping, but it's more efficient than Humanoid.Jumping so I would highly recommend using this event to the former.

Hope this helped!

1 comment

0

Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.