Guide 1 Docs 2 Reference 3

Method of Player

player:ride

The player's name. The account's own id: the one name for a player a rename does not change. Where they stand now. Your own table, kept on the player for as long as they are connected. A player is one value while connected: a == b and t[player] work. The Room the player is in; nil while they move between rooms. Degrees: yaw sideways, pitch up or down; live, read only. True while the player sneaks; live. attack is the left button held on a block in reach (see player.reach); a client says nothing about a button held on air. True while the player sits on something; live. Seat 1 drives a vehicle; locked keeps a sneak from getting them off. false when somebody sits in that seat; keeps the current ride on failure. Works immediately after creating the target. Repeating the same ride keeps the seat; no delay or extra movement is needed.

player:ride(thing: MountTarget, opts: { seat: number?, locked: boolean? }?) → boolean

Parameters

thingMountTargetrequired
opts{ seat: number?, locked: boolean? }optional

Returns

boolean

Used in