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 |
|
|
|
| 22 Apr 2017 11:20 AM |
like if its on the ground
shadilay |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 09 Jul 2015 |
| Total Posts: 647 |
|
|
| 22 Apr 2017 06:06 PM |
| ^ Nope. Tried everyworrd I could think of. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|