if api.world.getMap then.
What you can read
Things that notify you
Call:Connect(callback). Disconnects on unload.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
api.world: the current map (Bloxstrike, Rivals, Overkill, Phantom Forces, Murderers vs Sheriffs Duels).
if api.world.getMap then.
| Call | Returns | What it tells you |
|---|---|---|
getMap() | string? | The map you’re currently on, or nil while not in a match. |
getMaps() | { string } | Every map the game has, when the game exposes a list (may be empty). |
:Connect(callback). Disconnects on unload.
| Signal | Your callback receives |
|---|---|
onMapChanged | (map: string?): the map changed, or nil when you left the match. |
api.world.onMapChanged:Connect(function(map)
if map == "Crossroads" then
api.ui.toast("Crossroads config loaded")
end
end)