MoveStateChanged (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac
Fixed clumped event box
>NXTBoy
Removed superfluous vertical bar in the template call.
Line 1: Line 1:
<onlyinclude>{{Event|name = MoveStateChanged
<onlyinclude>{{Event
|arguments = [[MoveState (Enum)|MoveState]] ''newState'', [[MoveState (Enum)|MoveState]] ''oldState''
|name       = MoveStateChanged
|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>
}}</onlyinclude>
{{clear floats}}
{{clear floats}}
{{Example|<pre>
{{Example|<pre>

Revision as of 07:45, 29 September 2011

MoveStateChanged ( MoveState newState, MoveState oldState )
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 )