Skip to content
Untitled Sandbox - Developer Documentation
docs/types/UiScreen

UiScreen

A user interface screen designed in Studio, which you get from ui.screen and can listen to for clicks on any copy of it.

Events

clickedEvent<(Player, string, number?, any, Screen)>
submittedEvent<(Player, string, string, Screen)>

You listen to these with :connect, which the Event page covers.

UiScreen:mounted_for

method

Gives the latest screen this design showed to the player, or nil.

UiScreen:mounted_for(player: Player) -> Screen?
example
local screen = ui.screen("Shop"):mounted_for(player)

Use it forupdating a shop that one player already has open.

playerThe player whose screen to find.
↑ ↓ moveEnter openEsc close