Rogen

Routing by Name

Route a file or folder without moving it into a routing folder

Updated

When a feature is too small for routing folders, route by name instead.

The @ Suffix

@ and a route key at the end of a name route it, and come off the name:

src/On disk
  • Trade/
  • Admin@Server/
  • Ban.luau
  • TradeService@Server.luau
  • TradeTypes@Shared.luau
  • TradeUi@Client.luau
ExplorerRoblox Studio
  • ReplicatedStorage
  • Shared
  • Trade
  • TradeTypes
  • ServerScriptService
  • Trade
  • Admin
  • Ban
  • TradeService
  • StarterPlayer
  • StarterPlayerScripts
  • Trade
  • TradeUi

A file keeps its class, so TradeService@Server.luau is still a ModuleScript.

Marker Files

An empty file named @Server routes the folder it's in, and the folder keeps its name:

src/On disk
  • Anticheat/
  • @Server
  • Check.luau
  • Report.luau
ExplorerRoblox Studio
  • ServerScriptService
  • Anticheat
  • Check
  • Report

Rojo's Script Suffixes

When your config has a Server or Client key, Rojo's .server and .client suffixes route a script as well as set its class:

src/On disk
  • Boot/
  • Boot.server.luau
  • Hud.client.luau
ExplorerRoblox Studio
  • ServerScriptService
  • Boot
  • Boot
  • StarterPlayer
  • StarterPlayerScripts
  • Boot
  • Hud

A file that isn't a script routes with @, as in Types@Shared.luau.

On this page