MoveStateChanged (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator wow |
>NXTBoy Removed superfluous vertical bar in the template call. |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{Event | |||
|name = MoveStateChanged | |||
|arguments = [[MoveState (Enum)|MoveState]] ''newState'', [[MoveState (Enum)|MoveState]] ''oldState'' | |arguments = [[MoveState (Enum)|MoveState]] ''newState'', [[MoveState (Enum)|MoveState]] ''oldState'' | ||
|description = Fired when the [[SkateboardPlatform]]'s [[ControllingHumanoid (Property)|Controlling Humanoid]] changes the force being used on the [[SkateboardPlatform]]. | |description = Fired when the [[SkateboardPlatform]]'s [[ControllingHumanoid (Property)|Controlling Humanoid]] changes the force being used on the [[SkateboardPlatform]]. | ||
|object = SkateboardPlatform | |object = SkateboardPlatform | ||
}}</onlyinclude> | |||
{{clear floats}} | |||
{{Example|<pre> | {{Example|<pre> | ||
function onMoveStateChanged( newState, oldState ) | function onMoveStateChanged( newState, oldState ) |
Latest revision as of 07:45, 29 September 2011
![]() | |
Description | Fired when the SkateboardPlatform's Controlling Humanoid changes the force being used on the SkateboardPlatform. |
---|---|
Member of: | SkateboardPlatform |
Example
function onMoveStateChanged( newState, oldState ) print( "The SkateboardPlatform's oldState was " .. tostring( oldState ) ) print( "The SkateboardPlatform's newState is " .. tostring( newState ) ) end SkateboardPlatform.MoveStateChanged:connect( onMoveStateChanged )