All topics and tagsAbout

Bubble Gum Simulator INFINITY thumbnail of a dog pet blowing a giant bubble labeled +1M

How to Make a Roblox Simulator: Click, Sell, Upgrade, Repeat

Build a Roblox simulator: a tool that earns points, a sell zone that turns them into coins, an upgrade shop over RemoteEvents, and AI tools that speed it up.

Example of a polished simulator: Bubble Gum Simulator INFINITY by Rumble Studios (image from its Roblox page)

On this page12
  1. What top simulators do
  2. How the pieces talk
  3. Step 1: Stats
  4. Step 2: The click tool
  5. Step 3: The sell zone
  6. Step 4: The upgrade shop
  7. Step 5: New areas and saving
  8. Testing the loop
  9. Where AI tools help
  10. Monetizing a simulator
  11. Promoting your simulator
  12. Roblox Simulator FAQ

To make a Roblox simulator, build three systems: a tool or button that adds to a stat each time the player uses it, a sell zone that converts that stat into coins, and a shop that spends coins on upgrades which raise how much each use is worth. The click is detected on the client and sent to the server with a RemoteEvent, and the server owns every number. Add a second area that costs coins to enter and you have the full loop.

Roblox’s genre list puts Idle and Incremental Simulator under Simulation. The pattern is the same across themes, whether players lift weights, mine rocks or collect snow.

Quick facts

Core loop
Act, fill stat, sell, upgrade, open new area
Client side
Tool or button in a LocalScript
Server side
Stats, selling, shop checks
Link between
RemoteEvent in ReplicatedStorage

What top simulators do

Simulators are some of the biggest games on Roblox’s charts. In late November 2026 those included Pet Simulator 99 by BIG Games Pets, Bubble Gum Simulator INFINITY by Rumble Studios and Bee Swarm Simulator by the developer Onett. Each one runs the loop on this page, then adds a collection on top. In Pet Simulator 99 and Bubble Gum Simulator INFINITY that collection is pets hatched from eggs, which multiply what each action earns. In Bee Swarm Simulator it is bees that gather pollen for you, which you turn into honey.

The lesson for your own game is order. Get act, sell, upgrade working first, because pets, rebirths and trading only matter when the base loop already feels good. The big numbers on these thumbnails (+1M, +1T) are the genre’s promise: progress that keeps growing.

Pet Simulator 99 thumbnail showing a gray cat pet surrounded by other cartoon pets
Example of a polished simulator: Pet Simulator 99 by BIG Games Pets (image from its Roblox page)
Bee Swarm Simulator thumbnail reading Hatch Bees, Collect Pollen, Make Honey with cartoon bears
Example of a simulator with a collection system: Bee Swarm Simulator by Onett (image from its Roblox page)

How the pieces talk

A simulator is the first game type where you cannot avoid the client and server split. The player clicks on their own device. If the LocalScript simply raised its own Strength value, the server would never see it, and an exploiter could set it to a billion. So the client only says “I clicked,” and the server decides what that click is worth.

Roblox’s docs describe the pattern: RemoteEvent:FireServer() from a LocalScript, handled by OnServerEvent on the server, where the first parameter is always the Player who fired it.

Step 1: Stats

In ServerScriptService, add a Script that creates two leaderstats values per player:

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player

    local power = Instance.new("IntValue")
    power.Name = "Power"
    power.Parent = leaderstats

    local coins = Instance.new("IntValue")
    coins.Name = "Coins"
    coins.Parent = leaderstats

    player:SetAttribute("PerClick", 1)
end)

The PerClick attribute is the upgrade level the shop will raise.

Step 2: The click tool

Create a RemoteEvent in ReplicatedStorage named Train. Make a Tool with a part named Handle and put it in StarterPack so every player gets it. Inside the Tool, add a LocalScript:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local train = ReplicatedStorage:WaitForChild("Train")
local tool = script.Parent

tool.Activated:Connect(function()
    train:FireServer()
end)

Then the server handler, with a short cooldown so auto-clickers cannot spam it:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local train = ReplicatedStorage:WaitForChild("Train")

local lastClick = {}
local COOLDOWN = 0.25

train.OnServerEvent:Connect(function(player)
    local now = os.clock()
    if lastClick[player] and now - lastClick[player] < COOLDOWN then
        return
    end
    lastClick[player] = now
    local perClick = player:GetAttribute("PerClick") or 1
    player.leaderstats.Power.Value += perClick
end)

game:GetService("Players").PlayerRemoving:Connect(function(player)
    lastClick[player] = nil
end)
Roblox Studio Output window with client and server labels on messages
Image: © Roblox Corporation, from the Roblox Creator Docs

When you playtest, the Output window labels each message as client or server. Add a print() to both scripts the first time so you can see the event cross over.

Step 3: The sell zone

Place an anchored, semi-transparent part named SellZone. When a player touches it, turn Power into Coins:

local Players = game:GetService("Players")
local sellZone = workspace:WaitForChild("SellZone")

sellZone.Touched:Connect(function(hit)
    local player = Players:GetPlayerFromCharacter(hit.Parent)
    if not player then return end
    local stats = player.leaderstats
    if stats.Power.Value > 0 then
        stats.Coins.Value += stats.Power.Value
        stats.Power.Value = 0
    end
end)

You can also cap Power with a backpack size so players must walk back to sell. That is one more attribute and an upgrade path of its own.

Step 4: The upgrade shop

Add a ScreenGui to StarterGui with a Frame and a TextButton labeled “Upgrade.” Size them with Scale rather than Offset so they fit phones and monitors. Create a second RemoteEvent named BuyUpgrade.

Roblox UI element sized with Scale values across screen sizes
Image: © Roblox Corporation, from the Roblox Creator Docs

The button’s LocalScript only fires the event. The server checks the price:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local buyUpgrade = ReplicatedStorage:WaitForChild("BuyUpgrade")

buyUpgrade.OnServerEvent:Connect(function(player)
    local level = player:GetAttribute("PerClick") or 1
    local price = 25 * level * level
    local coins = player.leaderstats.Coins
    if coins.Value >= price then
        coins.Value -= price
        player:SetAttribute("PerClick", level + 1)
    end
end)

The squared price is only a starting curve. Play it, time how long each upgrade takes, and adjust. Roblox’s design docs on balancing virtual economies are worth reading before you set real numbers.

Step 5: New areas and saving

Put a wall at the edge of the first zone that a server script removes for a player once they pay, or teleport paying players to a second spawn. Then save Power, Coins and PerClick with DataStoreService from a server Script, wrapped in pcall().

Testing the loop

Playtest with Test (F5) and keep the Output window open. Click for a minute, sell, buy an upgrade, and check that Power, Coins and the PerClick attribute all change the way you expect. Then try to break it: click very fast, walk on and off the sell zone, buy with exactly enough coins. Bugs in simulators usually show up at those edges.

For a multiplayer check, start a local server with several clients from the testing controls. Each player should have their own stats, and one player’s upgrade should never change another’s. If it does, a script is storing data in a shared variable instead of on the player.

Where AI tools help

The scripts above are short, but a finished simulator has dozens: pets, rebirths, zones, a shop UI. Roblox Assistant can create the RemoteEvents, scripts and GUI objects directly in your place, and its Planning Mode lets you review the list before anything is built. Through the Roblox Studio MCP, an outside client can read the game tree, edit scripts with multi_edit, run a playtest and read errors from get_console_output, which is useful for “add a rebirth system and test it.”

Roblox Studio script editor showing a function signature hint
Image: © Roblox Corporation, from the Roblox Creator Docs

For simple typing help, Code Assist in the Script Editor suggests the next lines as you type and Tab accepts. Roblox warns it may suggest older APIs or plain Lua instead of Luau, so read before you accept.

Claude

Code

Connected through the Studio MCP, it can add a whole rebirth or pet system and run the playtest itself.

  • Free tier
  • Pro $20/mo (checked Nov 2026)
Try Claude

New to scripts? Start with how to script in Roblox and come back.

Monetizing a simulator

Simulators sell boosts. A pass (Roblox’s docs call game passes “passes”) is a one time Robux purchase, which fits a permanent 2x coins, auto click or extra pet slots. Create it on the Creator Dashboard under Monetization > Passes > Create pass and check it in the server with MarketplaceService:UserOwnsGamePassAsync() before you multiply the reward. A developer product can be bought many times, which fits coin packs or a timed boost; grant it in MarketplaceService.ProcessReceipt. Since May 30, 2026, passes and developer products can no longer be sold across games. To turn earned Robux into money, read Roblox DevEx.

Promoting your simulator

The genre leans on bright icons with one cute character and a big number. Keep the style the same across the icon and thumbnails so players spot the game again. The Roblox game icon and Roblox thumbnail maker guides cover the rules.

For Shorts, show the jump in numbers: a first click next to a late game click, or a rare hatch. Record a long session, then cut out those moments.

Opus Clip

Images and video

Cuts a long simulator session into short vertical clips with captions.

  • Free tier
  • Starter from $15/mo (checked Nov 2026)
Try Opus Clip

Affiliate link: we may earn a commission if you subscribe, at no extra cost to you. How this works.

See how to make viral Roblox animations for hooks and captions.

Roblox Simulator FAQ

What is the core loop of a Roblox simulator?

Do an action to fill a stat, sell it for currency, spend the currency on upgrades that make the action stronger, then repeat in a new area. Roblox files these under Simulation subgenres such as Incremental Simulator.

Why do I need a RemoteEvent in a simulator?

Clicks happen on the player's device, but stats must change on the server so they cannot be faked. The LocalScript fires a RemoteEvent and the server script decides what the click is worth.

Can a client script give a player coins?

It should not. Changes made by a LocalScript do not replicate to the server, and trusting the client lets exploiters set any value. Keep currency changes in server Scripts.

Can AI make a simulator game for me?

Roblox Assistant and the Studio MCP can write the scripts and UI, and Roblox Build on phones can make clicker-style 2D games. You still balance the numbers and test it. See Roblox AI game maker.

How do I make the upgrade shop UI?

Put a ScreenGui in StarterGui with a Frame and TextButtons, and size them with Scale so they fit every screen. The Roblox UI design guide covers layout.