FreeFalling (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Emess
No edit summary
>MrNicNac
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 2: Line 2:
|name = FreeFalling
|name = FreeFalling
|arguments = [[Bool]] ''active''
|arguments = [[Bool]] ''active''
|description = Fired when player is free falling.
|description = Fired when player is falling.
|object = Humanoid
|object = Humanoid
}}</onlyinclude>
}}</onlyinclude>
Line 9: Line 9:


{{Example|<pre>
{{Example|<pre>
game.Workspace.Player.Humanoid.FreeFalling:connect(function(active)
game.Workspace.Player.Humanoid.FreeFalling:connect(function()
  repeat wait() until not active
   print("Free falling")
   print("You landed!")
end)
end)
</pre>}}
</pre>}}


[[Category:Events]]
[[Category:Events]]

Latest revision as of 15:31, 25 July 2011

FreeFalling ( Bool active )
Description Fired when player is falling.
Member of: Humanoid


Example
game.Workspace.Player.Humanoid.FreeFalling:connect(function()
  print("Free falling")
end)