Start building

How to make a tycoon game on Roblox: droppers, upgrades and rebirths

Droppers, belts and buttons are simple on their own. Here is how to wire them into a tycoon that pays out on the server and saves every purchase.

A tycoon in Roblox Studio: a cash counter earning $420 a second, a quest card and an upgrader that doubles ore value, with the Upgrader script Revix wrote.
On this page
  1. How the tycoon loop works
  2. Claim a plot: one owner per plot
  3. Droppers and ore
  4. Conveyors, upgraders and the collector
  5. Purchase buttons for the next item
  6. Rebirths
  7. Save what each player bought
  8. Keep the part count low
  9. Questions

To make a tycoon game on Roblox, give each player a plot to claim, then script droppers that spawn ore, a conveyor that carries it to a collector, and buttons that spend the cash on more droppers. Every cash change happens in a server script, so players can't fake money. Upgrades, rebirths and saving give them reasons to keep coming back.

How the tycoon loop works

A tycoon is a loop: earn cash, buy something that earns more cash, repeat. The skill is pacing. Each purchase should take a little longer to pay for itself than the last, so the next goal is always a minute or two away:

ButtonPriceAddsPays for itself in
Dropper 1Free1 cash a secondRight away
Dropper 2502 cash a second25 seconds
Dropper 33006 cash a second50 seconds
Upgrader x29009 cash a second, by doubling ore100 seconds
Dropper 43,00030 cash a second with the upgrader100 seconds

Build one plot first. The scripts below expect this layout in Explorer:

  • Workspace > Tycoons: a Folder with one Model per plot (Plot1, Plot2 and so on).
  • ClaimPad and RebirthPad: parts in each plot, each with a ProximityPrompt inside.
  • Conveyor and Collector: the starter belt and the part that sells ore, always present.
  • Items: a Folder with everything that can be bought, each a Model with a unique name like Dropper1 or Upgrader1.
  • Buttons: a Folder with one part per purchase. Give each the attributes Item (the item's name), Price and, if it should wait, Requires (an item that must be bought first).

When Plot1 works, copy it for the other plots. Keep the item names identical in every copy, because saving stores purchases by name.

Claim a plot: one owner per plot

This script locks every item away in ServerStorage, gives a plot to whoever triggers its claim prompt, and frees it when they leave:

ScriptServerScriptService
-- Script in ServerScriptService: claim prompts, one owner per plot, items that match what the owner bought
local Players = game:GetService("Players")
local ServerStorage = game:GetService("ServerStorage")

local tycoons = workspace:WaitForChild("Tycoons")

local function setupPlot(plot)
	local items = plot:WaitForChild("Items")
	local prompt = plot:WaitForChild("ClaimPad"):WaitForChild("ProximityPrompt")
	local locked = Instance.new("Folder")
	locked.Name = plot.Name
	locked.Parent = ServerStorage
	plot:SetAttribute("OwnerId", 0)
	for _, item in items:GetChildren() do
		item.Parent = locked
	end

	local bought, links = nil, {}

	local function sync()
		for _, item in locked:GetChildren() do
			if bought and bought:FindFirstChild(item.Name) then item.Parent = items end
		end
		for _, item in items:GetChildren() do
			if not (bought and bought:FindFirstChild(item.Name)) then item.Parent = locked end
		end
	end

	prompt.Triggered:Connect(function(player)
		if plot:GetAttribute("OwnerId") ~= 0 or player:GetAttribute("Plot") then return end
		if not player:FindFirstChild("Bought") then return end -- data still loading
		bought = player.Bought
		player:SetAttribute("Plot", plot.Name)
		plot:SetAttribute("OwnerId", player.UserId)
		prompt.Enabled = false
		links = { bought.ChildAdded:Connect(sync), bought.ChildRemoved:Connect(sync) }
		sync()
	end)

	Players.PlayerRemoving:Connect(function(player)
		if plot:GetAttribute("OwnerId") ~= player.UserId then return end
		for _, link in links do
			link:Disconnect()
		end
		bought = nil
		plot:SetAttribute("OwnerId", 0)
		prompt.Enabled = true
		sync()
	end)
end

for _, plot in tycoons:GetChildren() do
	setupPlot(plot)
end

Ownership lives in the plot's OwnerId attribute, and the player gets a Plot attribute, so nobody holds two plots and no plot has two owners. Items move in and out to match the owner's Bought folder, which the saving script further down creates. If someone triggers the prompt before their data has loaded, nothing happens until it has.

Droppers and ore

In each dropper item, tag the part ore falls from as Dropper (in the Tags section of Properties) and give it two attributes: Interval (seconds between drops) and OreValue. One script runs every dropper in the game:

ScriptServerScriptService
-- Script in ServerScriptService: parts tagged "Dropper" drop ore while their item is on a plot
local CollectionService = game:GetService("CollectionService")
local Debris = game:GetService("Debris")

local oreFolder = Instance.new("Folder")
oreFolder.Name = "Ore"
oreFolder.Parent = workspace
local running = {}

local function runDropper(dropper)
	if running[dropper] or not dropper:IsA("BasePart") then return end
	running[dropper] = true
	while dropper.Parent do
		task.wait(dropper:GetAttribute("Interval") or 2)
		if dropper:IsDescendantOf(workspace) then
			local ore = Instance.new("Part")
			ore.Size = Vector3.new(1, 1, 1)
			ore.Color = Color3.fromRGB(255, 196, 64)
			ore.CFrame = dropper.CFrame * CFrame.new(0, -(dropper.Size.Y / 2 + 0.6), 0)
			ore:SetAttribute("OreValue", dropper:GetAttribute("OreValue") or 1)
			ore.Parent = oreFolder
			ore:SetNetworkOwner(nil)
			Debris:AddItem(ore, 30)
		end
	end
	running[dropper] = nil
end

for _, dropper in CollectionService:GetTagged("Dropper") do
	task.spawn(runDropper, dropper)
end
CollectionService:GetInstanceAddedSignal("Dropper"):Connect(function(dropper)
	task.spawn(runDropper, dropper)
end)

Every dropper gets one loop, but it only drops while it sits in Workspace, so locked droppers in ServerStorage stay quiet. The ore's worth is an attribute that only the server writes. SetNetworkOwner(nil) keeps ore physics on the server, so a client can't fling ore around, and Debris removes any ore still lying around after 30 seconds.

Conveyors, upgraders and the collector

A conveyor needs no moving parts. An anchored part with its AssemblyLinearVelocity set stays put but pushes whatever rests on it. Tag belts Conveyor, upgraders Upgrader (with a Multiplier attribute) and the selling part Collector:

ScriptServerScriptService
-- Script in ServerScriptService: conveyors, upgraders and collectors, found by their tags
local CollectionService = game:GetService("CollectionService")
local Players = game:GetService("Players")

local tycoons = workspace:WaitForChild("Tycoons")

local function ownerOf(part)
	for _, plot in tycoons:GetChildren() do
		if part:IsDescendantOf(plot) then
			return Players:GetPlayerByUserId(plot:GetAttribute("OwnerId") or 0)
		end
	end
	return nil
end

local function onTag(tag, setup)
	for _, part in CollectionService:GetTagged(tag) do
		if part:IsA("BasePart") then setup(part) end
	end
	CollectionService:GetInstanceAddedSignal(tag):Connect(function(part)
		if part:IsA("BasePart") then setup(part) end
	end)
end

onTag("Conveyor", function(belt)
	belt.AssemblyLinearVelocity = belt.CFrame.LookVector * (belt:GetAttribute("Speed") or 8)
end)

onTag("Upgrader", function(upgrader)
	upgrader.Touched:Connect(function(ore)
		local boost = upgrader:GetAttribute("Multiplier") or 2
		if ore:GetAttribute("OreValue") and boost > (ore:GetAttribute("Multiplier") or 1) then
			ore:SetAttribute("Multiplier", boost)
		end
	end)
end)

onTag("Collector", function(collector)
	collector.Touched:Connect(function(ore)
		local value = ore:GetAttribute("OreValue")
		if not value then return end
		ore:SetAttribute("OreValue", nil) -- one ore can only pay once
		local owner = ownerOf(collector)
		local stats = owner and owner:FindFirstChild("leaderstats")
		if stats then
			local rebirthBoost = 1 + stats.Rebirths.Value * 0.5
			stats.Cash.Value += math.floor(value * (ore:GetAttribute("Multiplier") or 1) * rebirthBoost)
		end
		ore:Destroy()
	end)
end)

Belts push toward their front face, so if ore travels backward, turn the belt around. Make upgraders non-collidable parts that ore passes through. An ore keeps the highest multiplier it has touched, so passing the same upgrader twice does nothing, and you line upgraders up in rising order like 2, 3 and 5. The collector wipes the ore's value before paying, so one ore can't pay twice, and it pays the plot's owner, not whoever is standing nearby.

Purchase buttons for the next item

ScriptServerScriptService
-- Script in ServerScriptService: purchase buttons that only work for the plot's owner
local Players = game:GetService("Players")

local tycoons = workspace:WaitForChild("Tycoons")

local function setupPlot(plot)
	local items = plot:WaitForChild("Items")
	local buttons = plot:WaitForChild("Buttons")

	local function refresh()
		local owned = (plot:GetAttribute("OwnerId") or 0) ~= 0
		for _, button in buttons:GetChildren() do
			local needs = button:GetAttribute("Requires")
			local show = owned and not items:FindFirstChild(button:GetAttribute("Item"))
				and (needs == nil or items:FindFirstChild(needs) ~= nil)
			button.Transparency = if show then 0 else 1
			button.CanCollide = show
			button.CanTouch = show
			local sign = button:FindFirstChildOfClass("BillboardGui")
			if sign then sign.Enabled = show end
		end
	end

	for _, button in buttons:GetChildren() do
		button.Touched:Connect(function(hit)
			local player = Players:GetPlayerFromCharacter(hit.Parent)
			if not player or plot:GetAttribute("OwnerId") ~= player.UserId then return end
			local item = button:GetAttribute("Item")
			local price = button:GetAttribute("Price") or 0
			local cash = player.leaderstats.Cash
			if cash.Value >= price and not player.Bought:FindFirstChild(item) then
				cash.Value -= price
				local mark = Instance.new("BoolValue")
				mark.Name = item
				mark.Parent = player.Bought
			end
		end)
	end

	items.ChildAdded:Connect(refresh)
	items.ChildRemoved:Connect(refresh)
	plot:GetAttributeChangedSignal("OwnerId"):Connect(refresh)
	refresh()
end

for _, plot in tycoons:GetChildren() do
	setupPlot(plot)
end

A button only shows when its item isn't bought yet and its Requires item is, so buying Dropper1 reveals the Dropper2 button, and so on down the chain. The server compares the price with the owner's real Cash, takes the money and records the item in Bought, and the plot script moves the item in. Visitors can stand on buttons all day and nothing happens. If a button has a BillboardGui showing its price, the script hides that too.

Upgrades use the same buttons. A faster dropper is another dropper item with a shorter Interval, and a value multiplier is an upgrader item. Wiring dozens of buttons and attributes is slow work, so it's a good job to hand to Revix, which builds into your open place and sets the attributes for you.

Rebirths

A rebirth trades everything for a permanent boost: cash and items reset, and Rebirths goes up by one. The collector already multiplies payouts by 1 plus 0.5 per rebirth.

ScriptServerScriptService
-- Script in ServerScriptService: rebirth prompts trade cash and items for a permanent boost
local tycoons = workspace:WaitForChild("Tycoons")

for _, plot in tycoons:GetChildren() do
	local prompt = plot:WaitForChild("RebirthPad"):WaitForChild("ProximityPrompt")
	prompt.Triggered:Connect(function(player)
		local stats = player:FindFirstChild("leaderstats")
		if not stats or plot:GetAttribute("OwnerId") ~= player.UserId then return end
		local cost = 50000 * (stats.Rebirths.Value + 1)
		if stats.Cash.Value >= cost then
			stats.Cash.Value = 0
			stats.Rebirths.Value += 1
			player.Bought:ClearAllChildren()
		end
	end)
end

Clearing Bought makes the plot script lock every item again, so the player rebuilds, this time faster. The cost rises by 50,000 each time while the boost rises by 0.5, so each rebirth takes a little longer than the one before. Show the cost on the prompt's ActionText or in your UI so players know what they're saving for. Simulators use the same idea; how to make a pet simulator has a rebirth cost table you can adapt.

Save what each player bought

ScriptServerScriptService
-- Script in ServerScriptService: Cash, Rebirths and the Bought folder, loaded and saved together
local Players = game:GetService("Players")
local DataStoreService = game:GetService("DataStoreService")

local store = DataStoreService:GetDataStore("Tycoon1")
local loaded = {}

local function make(className, name, parent, value)
	local object = Instance.new(className)
	object.Name = name
	if value ~= nil then object.Value = value end
	object.Parent = parent
	return object
end

local function onPlayerAdded(player)
	local ok, data = pcall(function()
		return store:GetAsync("player_" .. player.UserId)
	end)
	if not ok then warn("Could not load " .. player.Name .. ", this session will not save") end
	if not player.Parent then return end -- left while loading
	data = (ok and data) or {}

	local leaderstats = make("Folder", "leaderstats", player)
	make("IntValue", "Cash", leaderstats, data.Cash or 0)
	make("IntValue", "Rebirths", leaderstats, data.Rebirths or 0)
	local bought = make("Folder", "Bought", player)
	for _, name in data.Bought or {} do
		make("BoolValue", name, bought, true)
	end
	loaded[player] = ok
end

local function save(player)
	if not loaded[player] then return end
	local names = {}
	for _, mark in player.Bought:GetChildren() do
		table.insert(names, mark.Name)
	end
	local stats = player.leaderstats
	local data = { Cash = stats.Cash.Value, Rebirths = stats.Rebirths.Value, Bought = names }
	local ok, err = pcall(function()
		store:UpdateAsync("player_" .. player.UserId, function()
			return data
		end)
	end)
	if not ok then warn("Could not save " .. player.Name .. ": " .. tostring(err)) end
end

Players.PlayerAdded:Connect(onPlayerAdded)
for _, player in Players:GetPlayers() do task.spawn(onPlayerAdded, player) end
Players.PlayerRemoving:Connect(function(player)
	save(player)
	loaded[player] = nil
end)
game:BindToClose(function()
	for _, player in Players:GetPlayers() do task.spawn(save, player) end
	task.wait(3)
end)

This script creates leaderstats with Cash and Rebirths, plus a Bought folder with one BoolValue per purchase. It saves all three as one table with UpdateAsync inside pcall, and skips saving for anyone whose data failed to load, so a bad load can't wipe them. Because purchases are stored by item name, they rebuild on whichever plot the player claims next time. For retries and the limits on how often you can write, see the DataStore tutorial.

Keep the part count low

Ore is the hidden cost of a tycoon. Ten droppers dropping every second onto 15 seconds of belt is 150 moving parts per plot, and eight busy plots put well over a thousand on one server. Keep it down:

  1. Destroy ore at the collector and give it a short Debris lifetime, as the scripts above do.
  2. Make late droppers drop more valuable ore, not more ore.
  3. Keep belts short and plots compact.
  4. Anchor every decoration, and use one tagged script per system instead of a script inside each dropper.

Then start a local server with a few players from the Test tab, buy out every plot and watch how the game runs as the ore piles up.

Questions

How do you make a dropper in Roblox?

Tag a part Dropper and run one server script that spawns a small unanchored ore part under every tagged part every few seconds. Store the ore's value in an attribute, give the server network ownership of it, and clean it up with Debris so stuck ore doesn't pile up.

How does a conveyor work in Roblox?

An anchored part with its AssemblyLinearVelocity set stays still but pushes anything resting on it. Set it to the part's LookVector times a speed, then rotate the belt so its front faces the collector.

How do tycoon buttons work?

Each button names the item it buys and its price. When the plot's owner touches it, the server checks their Cash, takes the price, records the purchase and moves the item onto the plot. Buttons for later items only appear once the item they require is bought.

How do I stop exploiters from giving themselves cash?

Only change Cash in server scripts. Keep ore values in attributes the server sets, pay the plot's owner from the collector, and check prices against the real Cash on the server. Never add money because a RemoteEvent from the client asked for it.

What is a rebirth in a tycoon?

A rebirth resets a player's cash and purchases in exchange for a permanent multiplier on everything they earn. It gives players a reason to rebuild the tycoon faster, and its cost should rise with each rebirth.

Your game is
one sentence away.

Start building free

Free to start. No card needed.