Skip to content

Message

The Message module is used to display messages to players.

export type ReplicationTarget = Player | {[any]: Player} | "All"

A specific player, a list of players (with numeric keys or otherwise), or all players.

Displays a notification in the top-right corner of the screen.

NameTypeDefaultDescription
messagestringThe message.
isTeamMessageboolean?If true, the notification will use a separate team panel.
targetReplicationTarget?The targets to show the message to. Must be specified on the server, must not be specified on the client.

Displays a popup appearing from the bottom of the screen.

NameTypeDefaultDescription
messagestringThe message.
targetReplicationTarget?The targets to show the message to. Must be specified on the server, must not be specified on the client.

Displays a chat message.

NameTypeDefaultDescription
messagestringThe message.
targetReplicationTarget?The targets to show the message to. Must be specified on the server, must not be specified on the client.

Displays a popup message with a specified format.

export type ScreenMessageFormat = "Standard" | "Error" | "Info" | "Success" | "Warn"
  • Standard: A standard message in white text with a black stroke.
  • Error: An error message in red text.
  • Info: An info message in blue text.
  • Success: A success message in green text.
  • Warn: A warning message in orange text.
NameTypeDefaultDescription
messagestringThe message.
formatScreenMessageFormatThe format; see above.
overrides{LabelProperties: {[string]: any}}?Specific properties to override, if desired.
targetReplicationTarget?The targets to show the message to. Must be specified on the server, must not be specified on the client.