Skip to main content

FlagService

Server entry Script. Creates remotes, initializes FlagRegistry, hooks prompts, and handles RequestSetNation with FlagAuth checks.

Remotes under ReplicatedStorage.NationFlagSystem.Remotes:

  • OpenPicker (server → client): poleId, currentNationId
  • RequestSetNation (client → server): poleId, nationId
  • Notify (server → client): toast message
Show raw api
{
    "functions": [],
    "properties": [],
    "types": [],
    "name": "FlagService",
    "desc": "Server entry Script. Creates remotes, initializes [FlagRegistry], hooks prompts,\nand handles `RequestSetNation` with [FlagAuth] checks.\n\nRemotes under `ReplicatedStorage.NationFlagSystem.Remotes`:\n- `OpenPicker` (server → client): `poleId`, `currentNationId`\n- `RequestSetNation` (client → server): `poleId`, `nationId`\n- `Notify` (server → client): toast `message`",
    "source": {
        "line": 13,
        "path": "src/ServerScriptService/NationFlagSystem/FlagService.server.luau"
    }
}