Vibecoding in Roblox
Rojo and Cursor make it easy to code everyone's favorite online game creation system
I spent the weekend spinning up games in Roblox. I had a little experience, and a friend to help, but was still pretty new to the whole thing. Here’s what I did:
Installed Roblox Studio, Cursor etc. on my Mac
Install both Lua and Rojo in Cursor as extensions. Lua is the language used by Roblox, and Rojo synchronizes code between Cursor and Roblox (ie. you can code in Cursor and it will appear in Roblox. It does not work the other way around)
Use command shift P to install Rojo in your Roblox project in Cursor
Go to Plugins in Roblox, and connect Rojo to Cursor
This was the most complicated part of the setup, and it’s easy to see how it can be simplified either integrating the scripting tool in Roblox or making the connection straightforward. Once it was up and running, Cursor did a great job of generating Lua scripts to power all kinds of interactions in Roblox.
(Not a screenshot from my game, but you get the idea).
It took some effort to connect Roblox to an external LLM (Gemini in my case) and then have the characters in the scene interact with each other. By using an LLM I could direct the character and have it generate novel lines, which was much more interesting than canned lines you get in most NPCs.
It felt like the future.