I have my own animation script for my custom rig, so I must detect player states.
When the player jumps, the humanoid state is becoming “Jumping” for a moment then automatically turns in “FreeFalling” even if the character is still gaining height. How can my script know if the character is really jumping or falling?
https://developer.roblox.com/en-us/api-reference/event/Humanoid/FreeFalling
oh would you look at that. learn something new everyday (i didnt know this!)
2 Likes
Maybe you can try using Humanoid.Jumping and check the boolean passed through the first argument?
Humanoid.Jumping:Connect(function(IsJumping: boolean)
if IsJumping then
-- Code
end
end)
2 Likes
Yeah but the boolean is true for one moment, even if the player is gaining height, it is still “FreeFalling” which is not actually a falling. Can I reach something like current jump power, just like in I can get the speed while running?
1 Like