Skip to main content

Module multi_instance

Module multi_instance 

Source
Expand description

Running several Roblox clients at once.

On Windows, the bundled audited helper closes Robloxโ€™s singleton handles. On macOS, Robloxโ€™s single-instance semaphore name is removed and the player is started directly, because Launch Services refuses a second instance of a bundle with LSMultipleInstancesProhibited. The semaphore was identified by multi-roblox-macos and rororo-mac.

Constantsยง

CREATE_NO_WINDOW ๐Ÿ”’
Process creation flag that keeps console helpers from opening a window.
PLAYER_EXECUTABLE ๐Ÿ”’
The player executable inside Roblox.app.
ROBLOX_SINGLETON ๐Ÿ”’
The named event RobloxPlayerBeta.exe creates to refuse a second client.

Staticsยง

SINGLETON_HANDLE ๐Ÿ”’
The handle of the mutex holding the Roblox singleton name, or 0.

Functionsยง

CloseHandle ๐Ÿ”’ โš 
CreateMutexW ๐Ÿ”’ โš 
clear_new_roblox_instances
Lets the next Roblox client open alongside running ones.
close_singleton_handles ๐Ÿ”’
Runs the helper on Roblox processes not yet in cleared.
find_roblox_player ๐Ÿ”’
Returns the first installed Roblox player under the given application folders.
hold_name ๐Ÿ”’
Creates a mutex under name and returns its handle. Returns None when the name is already taken by an object of another type, such as an event.
open_new_roblox_instance
Starts a new Roblox client for a join URI alongside any running clients.
release_roblox_singleton
Releases the Roblox singleton name, so Roblox allows one client again. Does nothing when the name isnโ€™t held or outside Windows.