Setup Guide


This guide assumes you know how to use the command line. You can find tutorials on YouTube for Windows or MacOS.

Before You Begin#

In order to start using roblox-ts, you'll need to have the following software already installed:


Once you have NodeJS properly installed, it should come with an npm command for your command line.

To install the latest version of roblox-ts, simply run:

npm install -g roblox-ts

This command will install roblox-ts globally on your system. You can now use rbxtsc in your command line.

Project Setup#

To start using roblox-ts to create a game project, follow these steps:

  1. Create a new folder and give it a name. The folder name cannot contain spaces. We are going to name ours my-project.
  1. Open the folder using your code editor (or your command line if your code editor does not have one integrated).
  1. Run rbxtsc init game in your command line to start the interactive project setup.

If you're using PowerShell for the first time, you may get an error about "running scripts is disabled on this system". You can fix this by running the following in PowerShell as an administrator:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

More info here

  1. Start roblox-ts in watch mode via rbxtsc -w. You can exit watch mode later by clicking on the command line and pressing Ctrl+C on your keyboard.
  1. Next, start up a Rojo server. If you are using the Rojo VSCode extension, simply hit Ctrl+Shift+P and select Rojo: Start Server.

Otherwise, open a new terminal with the same working directory and start Rojo via rojo serve. In VSCode a new terminal can be opened by pressing the + button.

  1. Open a new place in Roblox Studio where you wish to sync your compiled code into. Open up the Rojo plugin in Studio and hit Connect.
  1. Write code! ๐ŸŽ‰