Frequently Asked Questions

Everything you need to know about Nodeal, all in one place.

Nodeal is a modular, virtualized runtime framework for Roblox. It creates a secure abstraction layer between your code and the game engine, letting you use advanced patterns like custom global environments, location-agnostic imports, and comment-based decorators that vanilla Luau doesn't support.

No, you don't. Nodeal is built around a studio-first workflow. You don't need Rojo, VS Code, or any external file-sync tools to write clean code in Roblox. If you do prefer using Rojo and VS Code, Nodeal works perfectly fine with them too.

Learn more about Rojo

Nodeal is currently in private beta. You can get the Roblox Studio Plugin (.rbxm) by joining our Discord server. Once you have it, just drag and drop the file into Roblox Studio, go to the Nodeal tab, and click Setup to initialize the directories.

Join the Discord Server

Every Nodeal module starts with local __=_G() and ends with return __(module). This handshake validates the script, hooks up the virtualized globals, handles your decorators, and returns nil to the native engine so exploiters can't access your module's inner table directly from memory.

Example
-- Standard Nodeal Module Boilerplate
local __=_G() local module = {}
function module:Greet(name: string)
print(`Hello, {name}! Nodeal is running.`)
end
return __(module)

Nodeal splits your code into Services (singletons accessed via game:GetService()), Built-ins (utility libraries injected globally), and Modules (reusable classes or scripts resolved using game:GetModule()).

Instead of writing long require paths that break when you move scripts, Nodeal finds dependencies by name. You just call game:GetModule('ModuleName'). Once a module is loaded, Nodeal caches it so next calls are instant.

Example
-- Traditional Roblox (Fragile)
local DataStore = require(game.ServerStorage.Nodeal.Data.DataStore)
-- Nodeal Architecture (Safe, Location-Agnostic)
local DataStore = game:GetModule("DataStore")

Yes. Nodeal intercepts game:GetService(). It checks your custom services first, and falls back to Roblox's native services (like TweenService or Players) if nothing matches. Everything is cached so it runs at O(1) speed.

Example
-- Resolves to standard Roblox service
local TweenService = game:GetService("TweenService")
-- Resolves to custom Nodeal service
local InventoryService = game:GetService("InventoryService")

Nodeal enforces strict context boundaries: server services (like database helpers) are completely invisible to the client, and client services (like UI managers) are invisible to the server. Trying to access a server service from the client returns nil and logs a warning.

Yes. You can wrap native services using newproxy(), add custom methods, and register them as your own service. When other scripts call game:GetService(), they'll get your customized version.

Example
local __=_G()
local NativeTween = game:GetService("TweenService")
local BetterTween = newproxy(NativeTween)
function BetterTween:Pulse(instance: Instance, duration: number)
local tween = NativeTween:Create(instance, TweenInfo.new(duration), { Size = UDim2.new(1.2, 0, 1.2, 0) })
tween:Play()
end
game:RegisterService("TweenService", BetterTween)
return __(BetterTween)

Built-ins are stateless utilities injected directly as globals in your virtualized modules. You don't need to import or require them to use them. Keep in mind they're only injected into virtualized Nodeal scripts, not standard Roblox scripts.

Example
-- Defining a custom Built-in
local __=_G() local MathEx = {}
function MathEx.lerp(a: number, b: number, t: number)
return a + (b - a) * t
end
game:RegisterBuiltIn("MathEx", MathEx)
return __(MathEx)
-- Inside another virtualized module, MathEx is globally accessible:
local nextPos = MathEx.lerp(currentPos, targetPos, 0.1)

Yes. You can wrap standard libraries (like math or os) using newproxy(), override or add functions (like making os.time() return precise server time), and register them as Built-ins to use them everywhere.

Example
local __=_G()
local BetterOS = newproxy(os)
function BetterOS.time()
return workspace:GetServerTimeNow()
end
game:RegisterBuiltIn("os", BetterOS)
return __(BetterOS)

Decorators are compile-time tags written in block comments (--[=[ ... ]=]) using the @ symbol. The Studio plugin parses these comments and compiles them into Instance attributes that the runtime uses to wrap functions or configure modules.

Example
--[=[
@server
@typecheck
]=]
function CombatService:Attack(target: Player, damage: number)
-- ...
end

Nodeal comes with @server and @client for context locking, @build and @init for lifecycle hooks, @priority for load order, and documentation tags like @deprecated, @example, @alias, and @see.

Indentation inside the block comment is semantic: nested decorators inherit their parent's context. For instance, you can put @deprecated under @client so it only shows up as deprecated on the client, while remaining standard on the server.

Example
--[=[
@client
@hidden
@deprecated
@server
@priority 10
]=]
function Matchmaking:SyncState()
-- ...
end

By default, any function named Build or Init runs automatically. You can change this behavior by tagging your own functions with @build (runs when required) or @init (runs after all scripts load). You can also disable the default cycle by writing @init false.

Example
--[=[
@build
]=]
function Module:SetupData()
-- Runs during the Build phase
end
--[=[
@init false
]=]
function Module:Init()
-- Disables standard Init execution
end

Since Nodeal uses virtual environments, standard Roblox autocomplete can't resolve your custom modules. The Studio plugin fixes this by injecting type definitions and metadata directly into the editor, showing tooltips, warning badges, and code examples from your comments.