Skip to content

Instantly share code, notes, and snippets.

@vsDizzy
Created January 1, 2025 00:25
Show Gist options
  • Save vsDizzy/f242b60f2337a11a671a25662718a65d to your computer and use it in GitHub Desktop.
Save vsDizzy/f242b60f2337a11a671a25662718a65d to your computer and use it in GitHub Desktop.
Roblox muilti-instancer
# Roblox muilti-instancer
# v0.1.0
$createdMutex = $false
New-Object System.Threading.Mutex($true, "ROBLOX_singletonMutex", [ref] $createdMutex)
if (-Not $createdMutex) {
Write-Host "Please close all Roblox instances." -ForegroundColor Red
} else{
Write-Host "Now you can open multiple Roblox instances." -ForegroundColor Green
}
Write-Host
Read-Host "Press ENTER to exit"
@vsDizzy
Copy link
Author

vsDizzy commented Jan 1, 2025

Adjust policy if needed

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment