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: There's Humanoid.FreeFalling, is there grounded?

Previous Thread :: Next Thread 
Oryxide is not online. Oryxide
Joined: 09 Jul 2015
Total Posts: 647
22 Apr 2017 10:56 AM
Googled it, but couldn't find anything. Is there?
Report Abuse
ninjaguy77777 is not online. ninjaguy77777
Joined: 15 Oct 2011
Total Posts: 2382
22 Apr 2017 11:20 AM
like if its on the ground


shadilay
Report Abuse
Oryxide is not online. Oryxide
Joined: 09 Jul 2015
Total Posts: 647
22 Apr 2017 05:43 PM
Yeah.

Working on a sort of gliding system, so if you jump from tall heights you won't take damage

function slowFallBegin(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.P then
game.Workspace.Gravity = 50
end
end



function slowFallEnd(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.P then
game.Workspace.Gravity = 196.2
end
end

Humanoid.FreeFalling:connect(function()
game:GetService("UserInputService").InputBegan:connect(slowFallBegin)
end)
game:GetService("UserInputService").InputEnded:connect(slowFallEnd)


This works to an extent, but if you time it right, you can p much get a boost jump and I was hoping something like Grounded would make it work better.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
22 Apr 2017 06:01 PM
GetState and StateChanged
Report Abuse
AxonMega is online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
22 Apr 2017 06:04 PM
There's either a .Landing or .Landed event.
Report Abuse
AxonMega is online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
22 Apr 2017 06:05 PM
Oh wait nvm there isn't the use .StateChanged
Report Abuse
Oryxide is not online. Oryxide
Joined: 09 Jul 2015
Total Posts: 647
22 Apr 2017 06:06 PM
^ Nope. Tried everyworrd I could think of.
Report Abuse
SummerEquinox is online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
22 Apr 2017 06:36 PM
I'm more or less skimming through this and the replies, so forgive me if I'm oversimplifying this.

if not Humanoid.FreeFalling then
end


Report Abuse
KapKing47 is not online. KapKing47
Joined: 09 Sep 2012
Total Posts: 5522
22 Apr 2017 06:53 PM
http://wiki.roblox.com/index.php?title=API:Enum/HumanoidStateType
Landed 7 The Humanoid touched the ground after a freefall. [This state lasts only briefly]
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