generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to detect when a player is falling

Previous Thread :: Next Thread 
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
19 Jun 2015 11:25 AM
I tried using:

plr.Character:WaitForChild("Humanoid").StateChanged:connect(function(state)
if state.Name == "Freefall" then
print("Falling")
end
end)

But it only prints "Falling" when the player has landed, any idea why
Report Abuse
Hyphonated is not online. Hyphonated
Joined: 22 Feb 2012
Total Posts: 175
19 Jun 2015 11:26 AM
check if the state is jumping, it falls nearly half a second after? no?


hi, I exist
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
19 Jun 2015 11:27 AM
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/FreeFalling

Humanoid.FreeFalling:connect(function()

end)
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
19 Jun 2015 11:29 AM
freefalling counts even if you're just moving down or after a jump.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image