• Welcome
Top images in our screenshot gallery:
Become a Beta-Tester
Most recent version is

TheoTown is a city simulation game for Android, iOS and PC. Give it a try...

We have an awesome discord server at discord.gg/theotown. Let's chat together!

• Lua Sandbox
Here you can play around with Lua code. See the Lua API or chatbox for information about what you can do using Lua in TheoTown. For general interest in making plugins, have a look into our getting started guide.

Code: Select all    Reset

local n = 10
local sieve = {}
local primes = Array()

for i = 2, n do
if not sieve[i] then
primes:add(i)
end
for j = i * i, n, i do
sieve[j] = true
end
end

Debug.toast('Hello world! There are '..#primes..' primes in 2 to '..n)
primes:forEach(function(p) Debug.toast(p) end)

Interactive Lua editor

• News

#### Plugin Store Activity in January 2023

Hello everyone, it's time for some Plugin Store statistics!

New Plugins
In total 34 new plugins have been submitted in January 2023. Most of them were contributed by:
1. reco0719
4 plugins

3 plugins

3 plugins

Top Creators
An incomplete list of our most diligent plugin creators:
By downloads
By published plugins

Top Plugins

1. Tesla Factory
by CERRERA
Downloads: 639,402
Rating: 74% by 2286 ratings
Published: 2021-01-22
Last update: 2023-01-17

2. Big hospital
by anhkatori2
Downloads: 368,059
Rating: 79% by 903 ratings
Published: 2021-07-29
Last update: 2022-05-18

3. Recycling center
by Stepanhie
Downloads: 496,170
Rating: 76% by 1944 ratings
Published: 2021-01-04
Last update: 2022-11-08

4. One World Trade Center
by Kevin hung
Downloads: 963,947
Rating: 72% by 3384 ratings
Published: 2018-12-17
Last update: 2018-12-17

5. Diagonal road
by Kartofun
Downloads: 920,946
Rating: 65% by 5022 ratings
Published: 2018-12-15
Last update: 2018-12-15

6. Waste To Energy Plant
by anhkatori2
Downloads: 339,333
Rating: 79% by 1053 ratings
Published: 2021-07-14
Last update: 2022-05-01

7. Piccadilly Circus
by MONTEMARINO
Downloads: 743,506
Rating: 76% by 2320 ratings
Published: 2019-01-20
Last update: 2020-03-19

8. Fire Headquarters
by anhkatori2
Downloads: 252,900
Rating: 79% by 627 ratings
Published: 2021-09-09
Last update: 2022-03-20

9. Allianz Parque Stadium
by Carlão da massa
Downloads: 532,732
Rating: 81% by 1161 ratings
Published: 2020-01-15
Last update: 2020-04-19

Views: 436  •  Comments: 0  •  Post a reply

• Recent
•  Recent announcements Recent popular topics Recent topics

• Newest Plugins

#### Account

I deleted the game from the mobile and re-downloaded it, but I have a problem that the game started again, so I logged into my account. What is the solution to go back to my city that I built?

Views: 31  •  Comments: 0  •  Write comments

#### Road Stripes

hi everyone today i show you a plugin me and a friend worked on, Road Stripes by me and IlikeBurgerHam#9304 you should check out his plugins their pretty good
build made by WooP_SlaP#7331
plugin ☟
road stripes.plugin
(7.78 KiB) Downloaded 35 times

Views: 160  •  Comments: 1  •  Write comments

• Latest news
Replies
Views
Last post

• Who is online?
• In total there are 91 users online :: 8 registered, 0 hidden and 83 guests (based on users active over the past 5 minutes)
Most users ever online was 1548 on 11 Aug 2021, 18:45

•  Menu

•  Top Posters

•  Statistics
• Totals
Total posts 165978
Total topics 13542
Total Announcements: 24
Total Stickies: 53
Total Attachments: 30177

Topics per day: 2
Posts per day: 30
Users per day: 59
Topics per user: 0
Posts per user: 1
Posts per topic: 12

Total members 326100
Our newest member Ch99

•  Friends
• Online
No friends online

Offline
No friends offline