Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Roblox/roact/llms.txt

Use this file to discover all available pages before exploring further.

Roact is distributed in three ways: as a .rbxm model file you drop straight into Roblox Studio, as plain source files you sync in with Rojo, or as a Wally package. All three methods end up with the same Roact module available in your game. The examples throughout this documentation assume Roact lives in ReplicatedStorage, but you can install it anywhere that makes sense for your project structure.

Choose an installation method

The model file method is the quickest way to get started if you’re working directly inside Roblox Studio without a local filesystem workflow.
1

Download the model file

Go to the Roact GitHub releases page and download the .rbxm file attached to the latest release.
2

Insert the model into Studio

In Roblox Studio, right-click on ReplicatedStorage in the Explorer panel and choose Insert from File…. Select the .rbxm file you just downloaded. You should see a Roact folder appear inside ReplicatedStorage.
3

Require Roact in a script

With the module in place, you can require it from any script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Roact = require(ReplicatedStorage.Roact)
You can install Roact into any container — ServerScriptService, StarterPlayerScripts, or even game itself. ReplicatedStorage is the most common choice because it is accessible from both server and client scripts.

Verify the installation

Once Roact is installed and synced, open the Roblox Studio Command Bar and run the following to confirm it loads without errors:
print(require(game:GetService("ReplicatedStorage").Roact))
If the output shows a table (the Roact API object) rather than an error, you’re all set. Move on to the Hello, Roact! guide to build your first component.
Roact requires Lua 5.1 / Luau (the runtime Roblox uses). It will not run in a standard Lua 5.3 or LuaJIT environment outside of Roblox Studio or the Roblox client.

Build docs developers (and LLMs) love