Get started with Roblox Asset Generator
Everything you need to install, configure, and start generating assets in minutes.
Installation & Setup
Prerequisites
Make sure you have Node.js 18+ and npm installed on your machine.
Clone the repository
Clone the Roblox Asset Generator from GitHub.
Install dependencies
Install all required packages using npm.
Run the generator
You're ready to go. Run your first asset generation command.
CLI Command Reference
All commands follow the pattern: rag <command> [options]
rag generate modelGenerate a 3D mesh model and export as .rbxm
rag generate textureGenerate a seamless PBR texture or decal
rag generate scriptGenerate a Lua script for Roblox Studio
rag configView or update your configuration
Code Examples
Generate a sci-fi spaceship mesh ready for Roblox Studio.
Configuration Options
Customize the generator by editing rag.config.json in your project root.
| Key | Type | Default |
|---|---|---|
| outputDir | string | ./output |
| defaultStyle | string | modern |
| defaultPolyCount | number | 1000 |
| textureSize | number | 512 |
| exportFormat | string | rbxm |
| verbose | boolean | false |
Frequently Asked Questions
Troubleshooting
Command not found: rag
Make sure you've installed dependencies with npm install and are running the command from the project root. Try npx rag instead.
Output directory not found
The generator creates the output directory automatically. If it fails, check that you have write permissions in the project folder.
Generated model looks incorrect
Try being more specific with the --style and --name flags. For example, --name "MedievalCastle" --style "medieval stone fortress" gives better results than a generic name.
Node.js version error
Roblox Asset Generator requires Node.js 18 or higher. Run node --version to check, and visit nodejs.org to upgrade if needed.
Contribute on GitHub
Roblox Asset Generator is open source. Report bugs, request features, or submit a pull request.