Reading a native page
The native reference brings together three APIs.
| API | Language | For |
|---|---|---|
| server | Luau | a server's scripts |
| client | C | a program or engine that connects to a server |
| game | C++ and Blueprint | the Unreal project |
Notation (Luau)#
| Written | Meaning |
|---|---|
number? |
optional, or may be nil |
{ Player } |
list of players |
{ [string]: string } |
table from text to text |
(zone, player) -> () |
function |
boolean, string? |
two returned values |
. for a function in a table (players.all()), : for a function of an object (player:kick()).
Types#
| Type | Content |
|---|---|
Entity |
player or object: id, name, kind, isPlayer |
Player |
an Entity with the functions of the PLAYER namespace and the account field |
Zone |
id, name, data, and for map zones bucket and fromMap |
Position |
{x, y, z}, {x = …, y = …, z = …} or vector |
Timer |
returned by after and every |
All entity:… functions also work on a player.
Units#
Server and client: metres, seconds, degrees, Z up. Unreal game: centimetres.