match
The running match: its map, mode, players and how to end it. Only scripts get match; content.luau does not.
The entry script runs once the arena exists and its chunks are loaded, but before any player is admitted, so match.players() is empty at the top level of main.luau. Players arrive through players.onJoin / the playerJoin event. When scripts hot-reload in dev mode, the entry script runs again and playerJoin fires again for everyone already in the match.
Functions
This match's instance id, e.g. "coinrush-3". Unique among the server's live matches.
The map chosen for this match. Every match has a map: with maps = "a,b" one is picked at random when the match starts, otherwise it is the single map. Never nil.
The mode picked for this match, one of the modes listed in experience.toml, chosen at random when the match starts. Nil when the experience lists no modes.
match.spawn() -> MatchSpawn#The map's spawn point; the same value as match.map().spawn.
Markers with the given name, or an empty table when there are none. Unlike match.map().markers, each entry is flat: the marker's properties are merged into the same table as name, x, y, z and yaw, and facing is not included.
The players currently in this match, as player handles. Empty until players are admitted.