Installation
From GitHub Releases (recommended)
- Open the latest release and download
nation-flag-system.rbxm. - In Studio, drag it into the viewport (or Insert from File).
- Move contents into your place:
| From the release Folder | Move into |
|---|---|
ReplicatedStorage.NationFlagSystem | ReplicatedStorage |
ServerScriptService.NationFlagSystem | ServerScriptService |
StarterPlayerScripts.NationFlagSystem | StarterPlayer.StarterPlayerScripts |
Tagged releases (v*) build this model with rojo build release.project.json.
From source (Rojo)
git clone https://github.com/metricrb/nation-flag-system.git
cd nation-flag-system
aftman install
rojo serve default.project.json
Connect the Rojo plugin in Studio. Trees sync to:
| Source | Studio |
|---|---|
src/ReplicatedStorage/NationFlagSystem | ReplicatedStorage.NationFlagSystem |
src/ServerScriptService/NationFlagSystem | ServerScriptService.NationFlagSystem |
src/StarterPlayerScripts/NationFlagSystem | StarterPlayer.StarterPlayerScripts.NationFlagSystem |
Local release build:
rojo build release.project.json --output nation-flag-system.rbxm
Place requirements
- Flag poles live under
Workspace.Flags(or changeConfig.FlagFolderPath). - Each pole is a
Modelwith a flagMeshPart(name containingflagpreferred). - Optional: tag extra poles with CollectionService tag
CustomizableFlag. - Edit
Configfor auth defaults. - Create a Team named
Staff(or changeConfig.TeamName) if using Team / Either mode.
Custom draped meshes: see Custom mesh flag integration (TextureID only).
FlagService starts automatically as a Script under ServerScriptService.NationFlagSystem.