Notifications are small, dismissible UI messages sent to players. Use them for alerts, confirmations, and interactive prompts. Simple to send, but capable of embedding buttons and inputs for richer interactions.Documentation Index
Fetch the complete documentation index at: https://sphere.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Creating
Properties
Properties
Title String • Required
The heading shown on the notification. Must be set before calling
Secondary body text displayed below the title.Icon String
Asset ID for a small icon shown on the notification.Thumbnail String
Asset ID for a larger thumbnail image.Duration Number
How long in seconds the notification stays visible. Defaults to
Background fill color. Defaults to
Background transparency from
The heading shown on the notification. Must be set before calling
:Send().Description StringSecondary body text displayed below the title.Icon String
Asset ID for a small icon shown on the notification.Thumbnail String
Asset ID for a larger thumbnail image.Duration Number
How long in seconds the notification stays visible. Defaults to
5. Set to math.huge to keep it open indefinitely.BackgroundColor3 Color3Background fill color. Defaults to
Color3.fromRGB(0, 0, 0).BackgroundTransparency NumberBackground transparency from
0 to 1. Defaults to 0.1.Items
Items are interactive elements embedded inside a notification. Add them with:Add() before calling :Send().
Add
Appends an interactive item to the notification. Supported types are"Button" and "Input".
Annotation
Annotation
Example
Example
Adds a button to the notification, sets its label, and connects a callback that fires when the player presses it.
Input
Input
Type String • Required
The item type to create. Must be
The item type to create. Must be
"Button" or "Input".Button
A clickable action embedded in the notification. Fires connected callbacks when the player interacts with it.Annotation
Annotation
Example
Example
Creates a primary button with a leading icon. The callback fires when the player presses it and auto-disconnects once the notification is closed.
Fields
Fields
Title String
The label shown on the button.Variant String
Visual style variant for the button.LeadingIcon String
Asset ID for an icon shown to the left of the title.TrailingIcon String
Asset ID for an icon shown to the right of the title.
The label shown on the button.Variant String
Visual style variant for the button.LeadingIcon String
Asset ID for an icon shown to the left of the title.TrailingIcon String
Asset ID for an icon shown to the right of the title.
Methods
Methods
Connect Function
Registers a callback fired when the button is pressed. The callback receives
Removes a registered callback. Pass a numeric index to remove one,
Removes this button from the notification.
Registers a callback fired when the button is pressed. The callback receives
(player: Player, response: string). Pass disconnectAfterRemoval = true to auto-disconnect when the notification is closed. Returns the function index.Disconnect FunctionRemoves a registered callback. Pass a numeric index to remove one,
"disconnectAfterRemoval" to remove all auto-disconnect callbacks, or omit to clear all.Destroy FunctionRemoves this button from the notification.
Input
A text field embedded in the notification. Connected callbacks fire when the player submits the input.Annotation
Annotation
Example
Example
Collects a short text response from the player. The field clears after submission and caps input at 200 characters.
Fields
Fields
Title String
Label shown above the input field.PlaceholderText String
Ghost text shown when the field is empty. Defaults to
Pre-filled value when the notification appears. Defaults to
Maximum number of characters allowed. Defaults to
When
When
When
When
Label shown above the input field.PlaceholderText String
Ghost text shown when the field is empty. Defaults to
"Type here...".DefaultValue StringPre-filled value when the notification appears. Defaults to
"".MaxLength NumberMaximum number of characters allowed. Defaults to
math.huge.AutoSubmit BooleanWhen
true, submits automatically as the player types. Defaults to false.ClearTextOnFocus BooleanWhen
true, clears the field when the player focuses it. Defaults to false.ClearTextOnSubmit BooleanWhen
true, clears the field after the player submits. Defaults to true.MultiLine BooleanWhen
true, allows line breaks in the input. Defaults to false.Methods
Methods
Connect Function
Registers a callback fired when the input is submitted. The callback receives
Removes a registered callback. Pass a numeric index to remove one,
Removes this input from the notification.
Registers a callback fired when the input is submitted. The callback receives
(player: Player, value: string). disconnectAfterRemoval defaults to true for inputs. Returns the function index.Disconnect FunctionRemoves a registered callback. Pass a numeric index to remove one,
"disconnectAfterRemoval" to remove all auto-disconnect callbacks, or omit to clear all.Destroy FunctionRemoves this input from the notification.
Sending
Send
Sends the notification to one player, a list of players, or all players. Returns a handle containing the active send’s UUID.Annotation
Annotation
Examples
Examples
Single player
Sends to one player and stores the UUID for later use withAll players
Broadcasts to every connected player. The notification auto-dismisses after 10 seconds.With buttons
Sends a persistent invite with Accept and Decline buttons. Each button closes the notification for that player on press.
Sends to one player and stores the UUID for later use with
:Close().Broadcasts to every connected player. The notification auto-dismisses after 10 seconds.
Sends a persistent invite with Accept and Decline buttons. Each button closes the notification for that player on press.
disconnectAfterRemoval is set so callbacks clean up automatically when the notification is dismissed.Input
Input
Target Player | Table | String • Required
Who to send the notification to. Pass a
Who to send the notification to. Pass a
Player instance, a table of Player instances, or "all" to broadcast to every connected player.Output
Output
UUID String • Read-Only
The GUID identifying this active send. Use it with
The GUID identifying this active send. Use it with
:Close() to dismiss the notification early.Title must be set before calling :Send() or an error will be thrown.Close
Dismisses a specific active send by UUID. Optionally targets a single player; omit to remove the notification for everyone.Annotation
Annotation
Examples
Examples
Close for everyone
Dismisses the notification for all players who received it. Useful for timed or event-driven cleanup.Close for one player
Dismisses the notification only for a specific player, leaving it visible for everyone else.
Dismisses the notification for all players who received it. Useful for timed or event-driven cleanup.
Dismisses the notification only for a specific player, leaving it visible for everyone else.
Input
Input
UUID String • Required
The UUID returned by
If provided, only dismisses the notification for this player. Omit to dismiss it for all players.
The UUID returned by
:Send() identifying the active send to dismiss.Player PlayerIf provided, only dismisses the notification for this player. Omit to dismiss it for all players.
Closing a send also disconnects all callbacks whose
disconnectAfterRemoval is true.Destroy
Removes all active sends of this notification across all players and clears all its items.Annotation
Annotation
Duration
By default, notifications auto-dismiss after5 seconds. Set Duration before calling :Send() to change this.
When
Duration is math.huge, the notification stays visible until :Close() or :Destroy() is called manually.