Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

TwoWayExit/Explosion-Imminent

Repository files navigation

Explosion Imminent Lobby

Developer Documents

1. Client <-> Server Communications

1-1. Client

Files inside ReplicatedStorage/Client are for remote signals handling OnClientEvent

1-2. Server

Files inside ServerStorage/Server are the opposite, and are for remote signals handling OnServerEvent or OnServerInvoke

Server/Events use OnServerEvent, while Server/Functions use OnServerInvoke

2. User Interface

2-1. UserInterfaceController

ReplicatedStorage/Controllers/UserInterfaceControllers.lua is responsible for connecting all event signals with their respective callbacks and storing necessary information. (see 2-2 for more information on event callbacks)

2-1-1. Properties

UserInterfaceController.LastTickerType

The last ticker type that was shown.

Possible values:

  • "Events"
  • "News"
  • "Facts" (default)
UserInterfaceController.LastTickerMessage

The last ticker message that was shown.

UserInterfaceController.LastGuiPage

The last GUI page that the user was in.

List of possible values is in ReplicatedStorage/UserInterface/Pages.lua, shown by the methods

UserInterfaceController.CurrentGuiPage

The current GUI page the user is in.

"Busy" can be set as the value to indicate that an asynchronous function is being called and the user is not intended to go back yet.

List of possible values is in ReplicatedStorage/UserInterface/Pages.lua, shown by the methods

UserInterfaceController.Countdown

A Promise object which when :cancel() is called on, will stop the starting game countdown.

This value can be nil, so checking if it is should be done before cancelling.

2-1-2. Methods

UserInterfaceController.SetGuiObjectOrigins()

This method is only called once at KnitInit and should not be called anywhere else.

UserInterfaceController.GetGuiObjectOrigin(Object: GuiObject)

Returns the original position that was saved at the start of runtime of a GuiObject inside PlayerGui.

2-2. Event Callbacks

ReplicatedStorage/UserInterface contains ModuleScripts which should return a table with multiple methods in them, usually named after an event. These methods should be called in an event connection.

2-3. Pages

ReplicatedStorage/UserInterface/Pages.lua contains methods which are intended to be called depending on UserInterfaceController.CurrentGuiPage. These methods are used for backing out of a page. For more information, read the top comment in ReplicatedStorage/UserInterface/Pages.lua.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages