Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

setMatch

setMatch(authority, player, match, setMatchOptions?): boolean

Puts player in match, on team where given, or out of any match with null, past every join rule but the match’s slots, as a game’s own decision, as setTeam passes teams()’s: a lobby that fills courts with bots, a referee who sends a player off. The player leaves any match and line the player was in. Returns whether it applied: false where the player’s side or the match has no free slot. As Roblox’s Player.Team.

Parameter Type
authority Authority
player PlayerEntity
match MatchEntity | null
setMatchOptions SetMatchOptions

boolean