Transcription
In this video, we will guide you through how to make a Roblox game with Cloud AI. If you find this useful, then please consider subscribing and liking the video.
Now, in this tutorial, we are going to use Cloud AI together with Roblox Studio to build a complete Roblox game without manually creating every script ourselves. Make sure you download the actual Cloud desktop application and not just Cloud inside your browser because MCP support works with your desktop app.
To install AI, just go ahead and open any browser to your liking and just go ahead and search for Cloud desktop. And then, let's go to the official website and then choose download for Windows. And now, your setup EXE file will be successfully downloaded. Just go ahead and run your setup EXE file. Just wait for the Cloud to finish installing on your device. Just click on yes if prompted. And now, just be patient until the Cloud is installed. And once that the Cloud is installed, it will automatically open on your device. And as for me, I had already previously logged in with my account on Cloud, it will directly log in with my account. And as you can see, we are successfully signed in into our Cloud account.
Before we begin, you'll first need to connect Cloud AI to Roblox Studio using MCP. So, the first thing that you need to do is go to the top and go to AI Assistant. And here, you'll see an assistant tab appear here. Just go ahead and click on the three dot and choose manage MCP server. Make sure enable studio as MCP server is enabled and then here, just go ahead and expand setup instruction. And here, you'll see JSON configuration. Just go ahead and click on this copy icon to copy the JSON configuration file to clipboard.
After that, go to Cloud code and go to the the horizontal line at the top and here, you can just go ahead and go to file and go to settings. From here, just go ahead and go to developer at the bottom and choose to edit config. Now, your Cloud Desktop config will be successfully highlighted. Just go ahead and right-click on it and choose to open it with VS Code or Notepad. It does not matter. I'm just going to go ahead and go with Visual Studio Code. After that, it will be successfully opened in VS Code. So, here you will see JSON configuration file and press Ctrl A and press Ctrl C to copy it to your clipboard.
And after that, just open ChatGPT or any other AI chat assistant, and then just go ahead and type something like, "I want to connect my Roblox Studio to Cloud using MCP, and now I will paste the edit config file from Cloud Code, and then I will give you the JSON configuration file from Roblox. Can you help me merge that?" And just send the prompt. Now, here you can just go ahead and press Ctrl and V key on the keyboard, and then send the prompt. And now you can just press Windows and V key on the keyboard to open the clipboard, and then select the JSON configuration file from Roblox. After that, just go ahead and send it. And now it will give you the merged configuration. So, I'm just going to go ahead and copy it, and then go to VS Code, and then delete all of them by selecting all and then backspace, and then press Ctrl V to paste. And after that, just go ahead and press Ctrl S to save. And after that, you can close the VS Code.
Now, once that you have done that, just go ahead and completely close Cloud Code. Just close it from the hidden icon, also. Now, open your task manager, and here, if you see any instances for Cloud Code, you can just go ahead and close that, also. You can also use the search bar, and just right-click on it and choose to end task. After that, you can just go ahead and close this, and now basically just reopen Cloud. And now, I'm just going to ask it, "Are you connected to Roblox Studio using MCP?" And just send it, and you will see the connection was now successful. So, I'm just going to go ahead and close this.
For this tutorial, we will going to a new base plate experience in Roblox Studio, which gives us a clean project to work with. We are going to build a simple coin collecting game. Players will spawn into a map, collect coin, earn point, buy upgrades, and save their progress.
Now, let's start by creating the foundation of the game. So, I'll just go ahead and go to Cloud Core, and here you can see our our Roblox Studio connection is active. So, now you can just go ahead and write a prompt like create a complete coin collecting game. Create a spawn area and a simple map. Add a leaderboard called coin, and when a player touches a coin, they earn one point, and the coin disappears. Coin should respawn after 10 seconds. Create 20 coin around the map. Add all script and set up automatically. And make sure you make your prompt as detailed as possible as AI works best when the prompts are detailed. So, let's go ahead and send it. And now, just go ahead and click on always allow. Click on always allow if prompted. It will take some time, so be patient. And now, as you can see, it is saying everything is built and set up. It has also shown a full summary of what was created. So, basically, it created a coin collecting game, coins, leaderboard, and a script that are here. So, now let's go ahead and test it in Roblox Studio. And now, as you can see, it has successfully created our map. So, instead of a base plate, it has been created a new map. So, now let's go and test it. So, I'll just click on the play button to start stimulating the experience. And now, as you can see, when I touch my coins just like so, you'll see the coin will increase, and the coin has been changed from one to two, and now it will successfully change. So, basically, this confirms that our script are working properly.
Now, let's add a user interface so players can always see how many coins they have. So, I'm just going to go ahead and stop the simulation and then let's go to cloud code and just go ahead and type the following command. So, I'm just going to go ahead and type something like create a GUI that displays the player's current coin count in the top left corner and updates automatically when coin are connected and send it. Now, as you can see it is saying it can see it can see coin GUI already exists, but it can make it much more polished. So, I'll just click on allow. Now, it can see our existing basic GUI, but it will remove and build a more polished and animated version from scratch. So, I'll just wait for it to load. Now, as you can see it is saying everything is structured properly. So, I'll just go ahead and test it in Roblox Studio. Now, let's go ahead and test it. Now, you can see that the coin GUI now looks much good and now it has also some animated features. So, when I touch the coin, it is showing plus one at the top right corner of the coin GUI. So, now I'll just go ahead and end the simulation.
Now, let's create a simple shop system. In the cloud code, just go ahead and type something like create a simple shop GUI with one button. Spending 25 coin increases the player walk speed by five. The purchase should only work if the player has enough coin and click on send. Now, as you can see it is saying completed. Now, let's go ahead and test it in Roblox Studio. And now, as it is not working, I'll just go ahead and go to cloud and explain the problem in detail. I'm just going to go ahead and explain the problem and click on send. It fixed the problem, so I'm just going to go ahead and test it. And now, once you have enough coins, you can just go to your shop and you can buy speed boost for 25 coins. So, I'm just going to go ahead and buy it. Now, you can see speed has been successfully so I'm just going to close this. And now, as you can see, we are running much faster and the and the code is now working. So, I'm just going to go ahead and go to cloud code.
And now, let's make sure players don't lose their progress. So, let's go ahead and type create a data store system that saves and loads each player coin count when they leave and rejoin the game. And then, let's go ahead and click on send. And now, as you can see, everything is working properly and here is the full rundown. So, I'm just going to go to Roblox Studio and test my game. And now, as you can see, everything is working correctly.