Flag¶
The Flag object helps you make 'capture the flag' style games.
Description¶
The Flag is a unit spawned with a FlagStand object, and will respawn when captured. When a player touches this object's Handle, which must be a child of the Flag object, which is a Part named "Handle", the flag will be added to the player's backpack and will appear in their hand. A player cannot select other weapons while carrying a flag, and can drop the flag at anytime by pressing "Backspace" on the keyboard. If the player carrying a flag steps onto another FlagStand of a different team color, the flag will be removed from the player's backpack and a point will be added to the user's leaderstats, if provided. The flag will then regenerate at the originating flag stand.
Inheritance¶
Object → Instance → PVInstance → Model → BackpackItem → Tool → Flag
Nova inheritance: Instance → GuiItem → BackpackItem → Tool → Flag
Properties¶
TeamColor Supported Property Deprecated The Team this flag is for. Corresponds with the TeamColors in the Teams service.
Inherited members¶
Inherited from Tool: 19 properties, 37 methods, 11 events. They are documented on the base class page.
Roblox reference: Flag
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.