MotionEvent
Last updated
Gets called when the player's motion is updated, you can use this event to override the movement.
script.addListener("MotionEvent", (event) => {
// make the player 50% faster event.x *= 1.5;
event.z *= 1.5;
});x:
number
The amount to move the player in the x direction.
y:
number
The amount to move the player in the y direction.
z:
number
The amount to move the player in the z direction.
cancel():
void
Cancels the event.
Returns
void
Inherited from
isCancelled():
boolean
Returns
boolean
If the event is cancelled or not.
Inherited from
Last updated