This template is designed for creating Roblox games using Rojo.
It is a starting point for new projects, and includes a basic folder structure and some example code.
This template works on both Windows and macOS!
This project requires the following installed:
-
Aftman should work out of the box but if you have trouble, you'll need to add Aftman's bin directory to your system
PATH.On Windows:
%USERPROFILE%\.aftman\binOn Linux or macOS:
~/.aftman/binMake sure to restart your terminal after adding Aftman to your
PATHto reflect the changes. -
GitHub Desktop - recommended, but not required
GitHub for Desktop will help you manage your project and keep it backed up.
VS Code also has a built-in source control manager, but GitHub Desktop is recommended for beginners.
For this project, we use the following extensions:
- Rojo (required)
- The
rojoextension will allow you to sync your code with Roblox Studio.
- The
- Luau LSP (highly recommended)
Luau LSPwill give you syntax highlighting, linting, and autocomplete.
- selene
- In addition to
Luau LSP,selenewill give you more linting options, helping you write better code.
- In addition to
- StyLua (highly recommended)
styluawill format your code to make it look nice and consistent.
-
Make sure the requirements are installed.
-
Clone or download the repository to your local machine.
-
Open the project folder in VS Code.
-
Open the terminal in VS Code (
Ctrl + `on Windows orCmd + `on macOS).Keep this terminal open! You will need it for the next steps.
-
Run the following command to install the required dependencies:
aftman install -
Before opening Roblox Studio, make sure the rojo plugin for Roblox Studio is installed.
There are three ways to install the rojo plugin:
- Running
rojo plugin installin the terminal. - Downloading the plugin from the rojo repository and placing the
rbxmfile into your Plugins Folder. - Using the Roblox Plugin
- Running
-
Open Roblox Studio!
-
In Roblox Studio, open the
PLUGINStab on top and click on therojoplugin.
This will open a window with a button that says "Connect". Click on it to start the rojo server.
The default settings are fine for most.
- Start coding!
Your code will automatically sync with Roblox Studio when you save it in VS Code.
This repository is set up to use wally for package management which is a tool for managing Lua packages in Roblox.
You can add packages by running wally add <package-name> in your terminal or you can also edit the wally.toml file in the root of the project.
Once you're ready to use the packages, run wally install in your terminal to install them!
Packages will be placed into ReplicatedStorage.Packages by Rojo.