rbx-economy-gacha
Skill0 starsChanged 3 months agoMITView on GitHub
Gacha math that survives contact with players and policy — real odds tables, pity systems, expected-value math, and the paid-randomization disclosure Roblox requires. Use when the user says "egg odds", "loot box", "add a gacha", "pity system", "what should the legendary rate be", or when players call the odds a scam, nobody rolls twice, or the rare tier drops too often. Do not use for the hatch reveal choreography — load rbx-pets-hatching — or for the premium currency feeding rolls — load rbx-economy-currencies instead.
In this repository253 other files it gives its agents.
- rbx-abtestSkill
- rbx-accessibilitySkill
- rbx-analytics-eventsSkill
- rbx-analytics-funnelsSkill
- rbx-analytics-readingSkill
- rbx-animationSkill
- rbx-anim-cutscenesSkill
- rbx-anim-npcSkill
- rbx-anim-proceduralSkill
- rbx-anim-rigsSkill
- rbx-anim-tweenSkill
- rbx-architectureSkill
- rbx-assets-audioSkill
- rbx-assets-id-policySkill
- rbx-assets-sanitizeSkill
- rbx-assetsSkill
- rbx-assets-toolboxSkill
- rbx-assets-webSkill
- rbx-audio-feedback-mapSkill
- rbx-audio-mixingSkill
- rbx-audio-musicSkill
- rbx-audio-sfxSkill
- rbx-audioSkill
- rbx-audio-spatialSkill
- rbx-badges-groupsSkill
- rbx-build-compositionSkill
- rbx-build-detailingSkill
- rbx-build-greyboxSkill
- rbx-buildingSkill
- rbx-build-interiorsSkill
- rbx-build-kitbashSkill
- rbx-build-landscapeSkill
- rbx-build-propsSkill
- rbx-build-scaleSkill
- rbx-build-structuresSkill
- rbx-camera-controllersSkill
- rbx-camera-cutsceneSkill
- rbx-camera-shakeSkill
- rbx-chat-moderationSkill
- rbx-ciSkill
- rbx-combat-abilitiesSkill
- rbx-combat-hitregSkill
- rbx-combat-meleeSkill
- rbx-combat-rangedSkill
- rbx-combatSkill
- rbx-combat-statusSkill
- rbx-complianceSkill
- rbx-comprehendSkill
- rbx-controlsSkill
- rbx-data-crossserverSkill
- rbx-data-profilestoreSkill
- rbx-data-recoverySkill
- rbx-data-schemaSkill
- rbx-data-sessionlockSkill
- rbx-dataSkill
- rbx-design-difficultySkill
- rbx-design-loopSkill
- rbx-design-sheetSkill
- rbx-design-socialSkill
- rbx-economy-currenciesSkill
- The first 60 shown.
The file
Files
rbx-economy-gacha
When to load
Any randomized reward purchasable directly or indirectly with Robux — eggs, crates, chests, spins, mystery boxes. Also for free-roll systems, because today's free crate becomes tomorrow's paid one and the math should already be right.
The disclosure law (non-negotiable)
Roblox's randomized virtual items policy: if the roll is paid — with Robux, OR with any
currency/item purchasable with Robux, even indirectly — you MUST display the actual
numeric odds of each outcome before the purchase, and the roll must honor those numbers.
"Indirectly" catches the standard setup: coins buy eggs and Robux buys coins → the egg is
paid randomization. Display per-tier percentages on the egg/crate UI itself, not in a
description tab. Luck modifiers change the displayed odds too — show the modified
numbers to the player who has the modifier. Load rbx-policy with this skill, always;
under-13 audiences add pressure rules from rbx-psych-u13.
Odds tables that work
Genre-standard 5-tier egg (weights sum to 100 — display these exact numbers):
| Tier | Odds | 1/p |
| Common | 60% | 1.7 |
| Rare | 25% | 4 |
| Epic | 10% | 10 |
| Legendary | 4% | 25 |
| Mythic | 1% | 100 |
Per-egg tables shift the whole column down as zones progress (zone-3 egg: 45/30/15/7/3)
so later eggs are better, not just prettier. Store weights server-side in one CONFIG
table; the roll is Random.new():NextNumber(0, totalWeight) walked over the table —
server only, never a client-computed result (rbx-net-remotes).
The math you must run before shipping
- Expected rolls to hit p:
1/p. A 1% mythic averages 100 rolls. - Chance in n rolls:
1 - (1-p)^n. The number that surprises everyone: 100 rolls at 1% = 63.4%, not 100%. At 300 rolls it's 95%. Quote these when the user picks rates. - Expected cost:
(1/p) × roll price. 1% mythic at 25 R$-equivalent per roll = 2,500 R$-equivalent expected. If that exceeds what the chase item is worth to your whales, the rate is wrong — fix the rate, don't hide the math. - Luck multipliers: "2x luck" means top tiers' weights double and the remainder renormalizes into Common (60/25/10/4/1 → 47/25/12/8/2, displayed). Never implement luck as "reroll on fail" — its real multiplier becomes unquotable and the displayed odds go false, which is a policy violation, not a bug.
Pity systems
Raw randomness produces 300-roll droughts at 1% (5% of players will exceed 300 rolls). Pity converts the drought into a ceiling:
- Hard pity: guaranteed top-tier at 1.5–2× expected rolls (1% → pity at 150–200).
Counter persists across sessions in the profile (
rbx-data-schema), resets on hit. - Soft pity: from ~75% of the pity counter, add +1–2 percentage points per roll so most players hit "naturally" before the hard wall — the win still feels random.
- Display it. "Guaranteed Legendary in 37 rolls" is a retention mechanic and a trust signal; hidden pity earns you none of either.
- Pity counters are per-egg-tier, not global — a global counter lets players farm cheap eggs to bank pity for expensive ones.
Sharp edges
- CRITICAL — Odds displayed ≠ odds rolled (stale UI after a CONFIG change, luck not reflected, "reroll" luck): a policy violation with moderation risk, and players datamine rates from mass-roll videos. One CONFIG table drives both the roll and the UI.
- CRITICAL — Rolling client-side or trusting a client "I rolled X" remote: exploiters
mint mythics. Server rolls, server grants, client only animates
(
rbx-pets-hatchingowns the reveal). - HIGH — No pity at ≤1% rates: the drought tail (5% of players past 3× expected) churns your most invested spenders.
- HIGH — Duplicate rolls with no dupe conversion: past ~20 rolls most results are
dupes; convert dupes to a fusion/shard currency or rolls stop being purchases
(
rbx-pets-fusionin pet games). - MEDIUM — Odds text at unreadable size or off-screen on mobile: disclosure that can't be read isn't disclosure. ≥13pt, on the purchase surface, both orientations.
Load with
rbx-policy (always, don't ask — the disclosure requirement lives there),
rbx-psych-hooks (variable-reward ethics rails) + rbx-psych-u13 (audience split),
rbx-pets-hatching (reveal choreography), rbx-economy-currencies (what funds rolls),
rbx-data-schema (pity counters persist), rbx-analytics-events (roll outcomes logged).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

