roblox-simulator-economy
Что он делает
Этот скилл помогает создателям планировать и писать код денежной системы симулятора, тайкуна или кликера в Roblox. Он нужен разработчикам, которым нужны сбалансированные улучшения и награды, которые нельзя подделать.
Когда использовать
- ✓Когда вы задаете стоимость улучшений, доход и правила перерождения для симулятора в Roblox.
- ✓Когда нужно показывать большие числа в коротком виде, например 1.5K или 3.4M.
- ✓Когда вы планируете продавать яйца, ящики или прокрутки, которые оплачиваются Robux или валютой, купленной за Robux.
Ссылка на скилл
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/other-engines/roblox-simulator-economy/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Помоги сбалансировать цены улучшений в моей игре-кликере в Roblox, чтобы игроки развивались в ровном темпе.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент записывает числа экономики в одну таблицу настроек, делает так, чтобы сервер обрабатывал каждую покупку и награду, исправляет старые данные сохранений и раскрывает шансы платных случайных предметов.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Roblox simulator economy
Choose the economy's numbers with a pacing table before writing gameplay code, then implement them so the server owns every amount. Code targets Luau on Roblox's rolling platform APIs; the bundled scripts are pure Luau and were run with Lune 0.11.0, outside Studio.
When to use
- Picking or reviewing
baseCost,costGrowth, rebirth requirement and multiplier, or offline cap and efficiency values for a simulator, tycoon, clicker, or idle game. - Writing upgrade, buy-max, currency, rebirth, or offline-earnings code in Luau.
- Displaying large numbers, or values above about
1e15that lose precision. - Adding eggs, crates, or spins bought with Robux, or with currency that can be bought with Robux.
When not to use: DataStore reads, writes, session locking and retries → roblox-datastores.
Remote protocol design and rate limiting in depth → roblox-networking. Shop and HUD layout →
roblox-ui + game-ui-ux. A wave-defense economy → tower-defense. Engine-neutral save format
questions → save-systems.
Workflow
- Inspect. Find where currency, upgrade, and rebirth values live now and which scripts change them. List every RemoteEvent that touches currency and what each one sends.
- Write the numbers as one config table: base income; each upgrade's
baseCost,costGrowth, effect, andmaxLevel; rebirthbaseRequirement,requirementGrowth,multiplierPerRebirth; offlinemaxHours,efficiency. Server and client both read it. - Run the pacing calculator from the skill directory (paths are relative to it):
lune run scripts/balance.luau --print-defaults > economy.json, edit the file, thenlune run scripts/balance.luau economy.json. Read thewaitandvs prevcolumns and tune until they match the targets below.--helplists every field and its allowed range; a missing file, invalid JSON, or out-of-range field prints an error and exits 1. - Implement on the server with the patterns below and
references/server-patterns.md. Copy
scripts/economy_math.luauunchanged into a ModuleScript so the maths you tested is the maths that runs. - Verify.
lune run scripts/test_economy_math.luau(exits 1 on failure) for the maths; a Studio playtest with Server & Clients for purchases, rebirth, leaving and rejoining, and invalid remote arguments.
Formulas
| Quantity | Formula | Notes |
|---|---|---|
| Price of the next level | floor(baseCost * costGrowth ^ owned) |
1.07-1.15 for upgrades bought many times; 1.5-3 for rare large ones |
| Cost from level a to b | baseCost * g^a * (g^(b-a) - 1) / (g - 1) |
Players pay the floored per-level sum, slightly less |
| Buy max | walk real prices until the next exceeds the balance or maxLevel |
Safer than the log formula with floored prices |
| Rebirth requirement k | baseRequirement * requirementGrowth ^ k |
|
| Rebirth multiplier | 1 + k * multiplierPerRebirth |
Additive grows slowly; multiplicative (q ^ k) grows exponentially |
| Offline income | floor(min(away, maxHours * 3600) * rate * efficiency) |
Away time of 0 or less (clock went back) pays 0 |
Derivations, the rebirth wait-ratio formula, and a worked example: references/formulas.md.
Pacing targets (starting points, not rules)
- Early upgrades take seconds. In the default config the first 10 levels take 3-10 s each.
- Each rebirth should take only a little longer than the last, for example x1.2-x1.5. The
calculator's
vs prevcolumn is that ratio. With an additive multiplier it approachesrequirementGrowthover time, sorequirementGrowth = 3gives x2.0 rising to x2.7 and rebirth 8 takes 137 days at the default income.requirementGrowth = 1.8gives x1.2 rising to x1.6. - Offline earns less than online. An efficiency of 0.25-0.5 and an 8-12 hour cap keep playing worth more than idling without zeroing out players who log off.
Server-owned purchases
A RemoteEvent carries what the player wants ("buy upgrade Income"), never an amount or a price.
The server looks up the price, checks the balance, spends, and grants without yielding in between.
-- ServerScriptService/Economy.server.luau (excerpt; full version in references/server-patterns.md)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local EconomyMath = require(ReplicatedStorage.Shared.EconomyMath)
local Config = require(Replicate
Частые вопросы
Дает ли он точные цены, которые можно использовать?
Нет. Скилл помогает выбрать числа с помощью таблицы темпа, а правильные значения зависят от дизайна вашей игры.
Почему сервер должен обрабатывать покупки?
Скилл говорит, что сервер должен контролировать каждую сумму, чтобы игроки не могли менять свою валюту со своего устройства.
Покрывает ли он код DataStore?
Нет. Сохранение и загрузку данных покрывает отдельный скилл DataStore.
Подробности
Оригинальное описание автора
Design, balance, and implement the economy of a Roblox simulator, tycoon, clicker, or idle game in Luau: upgrade cost curves, buy max, income per second, rebirth/prestige requirements and multipliers, offline earnings, big-number display (1.5K, 3.4M, 2.0Qa), server-authoritative purchases, repairing tampered or old save data, and odds disclosure for paid random items such as eggs, crates, and spins. Includes a Lune pacing calculator. Use when choosing or checking baseCost/costGrowth/rebirth numbers, writing upgrade/currency/rebirth/offline code, or when progress stalls, a rebirth takes far lon
Популярность
- Звёзды на GitHub
- 6.6k
- Место в рейтинге
- #13841
- Лицензия
- Apache-2.0
- Обновлён
- 28.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
router
6.6kПомогает агенту выбрать нужный скилл для игровой разработки, определив движок и тип задачи.
ai-behavior-trees-utility-ai
6.6kПомогает агенту построить дерево поведения и систему утилитарного ИИ для врагов и персонажей игры, которые выбирают действия по приоритету и оценке.
audio-design
6.6kУчит агента сведению звука в играх: шины, громкость в децибелах, приглушение под диалоги, адаптивная музыка и вариации звуковых эффектов.
camera-systems
6.6kПомогает агенту создавать игровые камеры, которые плавно следуют за объектом, остаются в пределах уровня и вращаются или осматриваются в 3D.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.