MoveStateChanged (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
wow
>MrNicNac
Fixed clumped event box
Line 1: Line 1:
{|
<onlyinclude>{{Event|name = MoveStateChanged
|<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>
|}}</onlyinclude>
|}
{{clear floats}}
{{Example|<pre>
{{Example|<pre>
function onMoveStateChanged( newState, oldState )
function onMoveStateChanged( newState, oldState )

Revision as of 22:31, 28 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 )