• Welcome
Top images in our screenshot gallery:
Become a Beta-Tester

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
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 April 2022

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

New Plugins
In total 63 new plugins have been submitted in April 2022. Most of them were contributed by:
1. Naufhal
12 plugins

3 plugins

2 plugins

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

Top Plugins

1. Tesla Factory
by CERRERA
Rating: 84% by 1399 ratings
Published: 2021-01-22
Last update: 2021-12-12

by Kartofun
Rating: 69% by 3587 ratings
Published: 2018-12-15
Last update: 2018-12-15

by Kevin hung
Rating: 77% by 2536 ratings
Published: 2018-12-17
Last update: 2018-12-17

4. Big hospital
by anhkatori2
Rating: 84% by 586 ratings
Published: 2021-07-29
Last update: 2022-04-02

by MONTEMARINO
Rating: 80% by 1910 ratings
Published: 2019-01-20
Last update: 2020-03-19

6. Waste To Energy Plant
by anhkatori2
Rating: 84% by 649 ratings
Published: 2021-07-14
Last update: 2022-03-09

by Carlão da massa
Rating: 87% by 897 ratings
Published: 2020-01-15
Last update: 2020-04-19

8. Ferris Wheel
by A dutch Guy
Rating: 82% by 1441 ratings
Published: 2019-02-13
Last update: 2020-03-02

9. Medical School
by anhkatori2
Rating: 82% by 382 ratings
Published: 2021-09-01
Last update: 2022-04-09

• Recent
•  Recent announcements Recent popular topics Recent topics

• Latest news
Replies
Views
Last post

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

•  Top Posters

•  Statistics
• Totals
Total posts 155689
Total topics 11896
Total Announcements: 21
Total Stickies: 50
Total Attachments: 27974

Topics per day: 2
Posts per day: 30
Users per day: 39
Topics per user: 0
Posts per user: 1
Posts per topic: 13

Total members 203066
Our newest member Jefte alves pereira

•  Friends
• Online
No friends online

Offline
No friends offline