BX BLOXG AI DOCS
Browse documentation
Guide

Organise your project

Separate server authority, client presentation and shared modules.

Give each script a clear home#

Put authoritative game logic in ServerScriptService, reusable shared modules in ReplicatedStorage and client presentation in StarterPlayerScripts or StarterGui. ReplicatedStorage is visible to clients; do not put secrets there.

  1. ServerScriptService/EconomyService: prices, rewards and purchase checks.
  2. ReplicatedStorage/Shared/ItemConfig: public item definitions.
  3. StarterPlayer/StarterPlayerScripts/ShopController: UI and input.

Keep systems small#

A module should have a focused responsibility and an explicit interface. Pass dependencies to a module instead of searching for unrelated global state. Centralise configuration values so design changes do not require editing several scripts.

Paths in BLOXG AI#

Use service-relative paths with no .lua extension. Each file has an explicit script type. The editor rejects duplicate paths, unsupported roots and a script being used as a parent folder. Renaming a path does not rewrite references in other source files; use project search to update those references.

Further reading

Roblox: securing the client-server boundary ↗
Try it in your project.Open BLOXG AI workspace →