How to Make a Roblox Game with ChatGPT Codex

Kevin Stratvert
Kevin Stratvert
Nov 23, 2026 • 7 min read

You can go from an empty Roblox Studio project to a playable obstacle course simply by describing what you want to build. Jumping platforms, collectible coins, checkpoints, three themed worlds, and even a blimp flying overhead. Because who doesn't want one of those in their game?

We'll use ChatGPT Codex to build, customize, and help test the game directly inside Roblox Studio. You don't need coding experience to follow along, and you won't need to copy and paste scripts between the two apps.

This tutorial is sponsored by OpenAI.

What You'll Learn

  • Connect Codex to Roblox Studio so it can create objects and scripts directly in your project.
  • Build a playable obstacle course before adding themed environments and animated scenery.
  • Preserve existing mechanics when requesting redesigns, then test each round of changes.
  • Use computer use to identify gameplay issues before publishing and choosing sharing settings.

1. Set Up ChatGPT Codex and Roblox Studio

Codex is OpenAI's coding agent. You describe a task in everyday language, and it can write code, modify an existing project, and troubleshoot problems.

Start by installing the two apps:

  1. Download the ChatGPT desktop app and sign in.
  2. Use the switcher in the upper-left corner to select Codex.
  3. Download Roblox Studio, the free app for creating and publishing Roblox games.
  4. Open Roblox Studio and sign in to your Roblox account.
  5. Choose the Baseplate template to create a blank project.

At this point, you have an empty world. Not much to look at yet, but that's about to change.

Connect Codex to your Roblox project

The connection is what lets Codex work on the actual game rather than just give you code to insert yourself.

  1. In Codex, select the Plugins icon on the left.
  2. Search for Roblox Studio.
  3. Install the Roblox Studio plugin.
  4. Select the option to set up Roblox Studio and complete the connection.
Roblox Studio plugin setup dialog in Codex

In my setup, this took about 15 seconds. Once connected, Codex could see the open project, create objects, write scripts, and make changes directly inside Roblox Studio.

Check your starting usage

Before building, select the Usage icon near the bottom-left corner of Codex. This gives you a starting point so you can compare how much usage the project consumes.

I started with 100% remaining on a Pro plan. We'll check that again after building, redesigning, and testing the game.

2. Build Your First Roblox Obby

An obby is short for obstacle course. Players jump between platforms, avoid hazards, collect coins, and try to reach the finish line.

Start with a simple version that has three stages. The goal is to get a playable game working before spending time on scenery.

Enter a request like this in Codex:

Build a colorful, beginner-friendly Roblox obby with three stages. Include platforms to jump between, lava hazards, collectible coins, checkpoints, and a finish line. Create everything directly in my open Roblox Studio project, then test the basic gameplay.

Send the request and let Codex work. It can create the environment, add the objects, and write the scripts that make the course function. You don't have to place every platform manually.

My first version took a few minutes and was named Rainbow Adventure. It included a sequence of jumping platforms, red lava areas, coins, and a finish line.

Roblox Studio showing a straight obstacle course with colorful platforms, red hazard areas, and coins

3. Playtest the Basic Course

A game that looks right in the editor still needs to be played. In Roblox Studio, click the Play button near the upper-left corner, or press F5.

Work through the course and check the core mechanics:

  • Movement and jumps: Can you move between platforms and reach the next stage?
  • Coins: Does collecting a coin update the counter, and does the coin disappear?
  • Hazards: Does touching lava defeat the character?
  • Respawning and checkpoints: Does the character return to the expected location?
  • Finish line: Does completing the course trigger a victory message?

My first run already had a timer and coin counter. Collecting coins increased the count, but the coins stayed visible afterward. That's something to fix.

I also tried jumping into the lava. That hurt, just as expected, and the character respawned at the beginning. Continuing through the course took me past a checkpoint, through a section called Lava Lagoon, and up the elevated Sky Stairs to the finish.

Crossing the finish line triggered a completion message. We now have the basic game working. It isn't especially fancy yet, but that's a good foundation.

4. Redesign the Course Into Three Themed Worlds

Now we can make the game look a whole lot better. Instead of rebuilding from scratch, ask Codex to inspect and modify the existing objects and scripts.

Be explicit about what should stay the same. We want new scenery and more interesting obstacles, but we still need the checkpoints, coins, hazards, and finish line to work.

Use a redesign request with the following details:

Improve my existing Roblox obby into a more polished game while retaining its checkpoints, collectible coins, hazards, and finish-line behavior.

Create three themed stages with these features:

  • Tropical Island: Floating islands above the clouds, with palm trees, grassy surfaces, and waterfalls.
  • Candy World: Brightly colored platforms, oversized candy decorations, moving platforms, and playful obstacles. Include platforms that break and drop away after a player stands on them for a few seconds.
  • Lava Volcano: A dramatic volcanic setting with glowing lava, rotating obstacles, and a trophy at the finish area.

Give the route turns, changes in elevation, and varied jumps rather than keeping it in a straight line. Improve the lighting, materials, scenery, and overall appearance. Keep the difficulty beginner-friendly and all obstacles achievable.

Fix coin collection so collected coins disappear. Apply the changes directly in Roblox Studio, preserve the existing functionality, and test the updated game.

Tropical Island

The redesigned opening stage floats above the clouds, with trees, greenery, and grassy jumping platforms. It's a much more interesting place to start than a row of basic blocks.

Candy World

The second stage switches to bright colors and giant candy decorations. Moving platforms add variety, while the breakaway platforms keep players from standing still for too long.

In my game, lingering on one of those platforms caused it to rumble before it gave way. Suddenly, that next jump feels a little more urgent.

Candy World gameplay with pastel platforms, large candy decorations, and collectible coins

Lava Volcano

The final stage introduces dark volcanic rock, glowing hazards, and a more dramatic finish area beside a steaming volcano.

Roblox Studio showing a volcanic island surrounded by bright lava with the other themed stages in the distance

The important part is that these changes build on the game we've already made. We're describing a redesign, not manually reconstructing every object. If something doesn't look or feel right, we can ask for another adjustment.

5. Create and Animate a Blimp

The three worlds are looking good. Now let's add something that brings the environment to life: a colorful blimp flying around the islands.

For an animated object, describe both its appearance and its movement. Also explain how it should fit into the existing game.

Add a colorful cartoon blimp to my current Roblox Studio game, built from Roblox parts and meshes. Include a large rounded balloon, a gondola below it, tail fins, and propellers that spin.

Have it fly slowly around the three themed islands in a smooth looping route, with gentle vertical bobbing and natural turns. Position its flight path high enough to avoid interfering with players or obstacles.

Keep all existing game mechanics intact and test that the animation works during gameplay.

A turquoise cartoon blimp with colorful tail fins and a gondola in Roblox Studio

The result is a custom 3D object with spinning propellers flying around the course. We described what it should look like and how it should move, and Codex handled the implementation.

6. Use Computer Use to Test the Game

Codex can also help test the game through computer use, which lets it interact with applications on your computer.

First, enable the feature:

  1. In ChatGPT, select your profile picture and open Settings.
  2. Scroll through the left sidebar and select Computer use.
  3. Make sure the Any App option is enabled.
  4. Return to Codex.
ChatGPT Computer use settings with the Any App toggle enabled

When Codex tries to interact with an application, it may request permission. You can approve access for the session or choose Always allow. I had allowed access to Roblox Studio.

Next, ask Codex to play through the obstacle course, test its features, and report anything that needs improvement. Make clear that you want it to check the game through actual gameplay.

For this project, Codex reported completing all three stages and collecting all 15 coins. The main mechanics appeared to work, but it also identified some useful improvements:

  • Camera obstruction: Some signs got in the way of the camera.
  • Oversized interface: The on-screen interface occupied too much space.
  • Inaccurate victory feedback: The game could describe a run as perfect even after several deaths.

That last one is pretty generous. A few trips into the lava probably shouldn't qualify as a perfect run.

This is where testing becomes especially valuable. Finishing the course is one thing. Checking whether the interface, camera, and completion message make sense is another.

7. Fix the Issues and Retest

Once Codex has identified problems, ask it to fix the reported issues and test the game again.

In this project, the follow-up changes made the signs easier to read, reduced the interface's footprint, and made the victory message more accurate.

Return to Roblox Studio and check the result yourself, too. Look at whether the signs still block the route, whether you can comfortably see upcoming jumps, and whether the finish message reflects what happened during the run.

Build, test, refine, and test again. You don't need the first request to produce the final game. Each round gives you something concrete to improve.

8. Save and Publish Your Game to Roblox

Once you're ready to save the project to Roblox, return to Roblox Studio:

  1. Open the File menu.
  2. Select Publish.
  3. Enter a game name. I used Kevin Stratvert's Obby.
  4. Add a description and review the remaining settings.
  5. Select Next to continue.

The game is private by default, so publishing it doesn't automatically mean everyone can access it. The sharing options let you invite friends to try it or make it public.

I kept mine private while continuing to test and make improvements. That gives us room to keep refining before opening it up more broadly.

How Much Codex Usage Did the Game Take?

After building the course, redesigning the three worlds, adding the animated blimp, and testing and fixing issues, I checked the Usage icon again.

This project used about 3% of my available usage on the Pro plan. Not bad for going from a blank project to a playable game.

That's a reference point, not a fixed cost. Your usage can vary depending on your plan, the model you select, and the complexity of your project.

Keep Building on Your Idea

What makes this approach exciting is how accessible it makes getting started. You can describe an idea, get a working version into Roblox Studio, and improve it a little at a time.

The same workflow isn't limited to games. Codex can also help build websites and apps or automate tasks. But a floating obstacle course with candy platforms, a lava volcano, and a flying blimp? That's a pretty fun place to begin.

Share

Kevin Stratvert

I make AI, Excel, Windows, and everyday software easier to use with practical, step-by-step guides.

© 2026 Kevin Stratvert
Powered by Convella