Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i detect when someone is jumping?

Asked by
duckyo01 120
8 years ago

Theres no welds for that so Im kinda confused

0
You could always use a button pressed function, which in this case would be spacebar. Hyperclux 65 — 8y
0
Oh good idea thanks duckyo01 120 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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!

0
Thanks duckyo01 120 — 8y
Ad

Answer this question