Skip to content

Api > Room > GetAllPlayers()


Room.GetAllPlayers()⚓︎

Returns an array of all players in current room.

Returns:⚓︎

type Description
MLPlayer[] array of all players in current room.

Usage⚓︎

local val0 = Room:GetAllPlayers()

Extra Detail⚓︎

This is an expensive call. It is advised to cache the players list somewhere if it is needed to be used multiple times in a single frame.