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복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 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
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
router
6.6k에이전트가 엔진과 작업 종류를 파악해, 요청에 맞는 게임 개발 스킬을 골라 주도록 돕습니다.
ai-behavior-trees-utility-ai
6.6k에이전트가 적이나 캐릭터가 우선순위와 점수로 행동을 고르는 행동 트리와 유틸리티 AI 시스템을 만들도록 돕습니다.
audio-design
6.6k에이전트에게 게임 오디오 믹싱을 가르칩니다. 버스, 데시벨 음량, 대사 아래에서의 덕킹, 적응형 음악, 효과음 변주를 다룹니다.
camera-systems
6.6k에이전트가 부드럽게 따라가고, 레벨 안에 머물고, 3D에서 회전하거나 둘러볼 수 있는 게임 카메라를 만들도록 돕습니다.