Skip to content
Back to skills

Roblox Lessons

ASecurity

Hard-won Roblox/Luau gotchas from shipping real games with AI-driven development — UI layout traps (TextScaled, GuiInset, canvas sizing, aspect constraints, phone controls), Studio MCP and Rojo quirks, saving and migrations, purchases and paid-random-items policy, Open Cloud API limits, imported assets, particles and meshes, economy design. Use for ANY Roblox game work in Luau/Rojo before building or debugging UI, saving, monetization, Studio verification, publishing, or calling the Open Clou...

  • 2 stars
  • 0 votes
  • 2 copies
  • 6 views
  • Added October 17, 2026
ai-agentsrustgodebugginggitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add rodrigo-guerraa/roblox-hub --skill roblox-lessons --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Roblox Lessons?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Roblox Lessons
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rodrigo-guerraa-roblox-lessons/badge)](https://www.skillsdirectory.com/skills/rodrigo-guerraa-roblox-lessons)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: roblox-lessons
description: Hard-won Roblox/Luau gotchas from shipping real games with AI-driven development — UI layout traps (TextScaled, GuiInset, canvas sizing, aspect constraints, phone controls), Studio MCP and Rojo quirks, saving and migrations, purchases and paid-random-items policy, Open Cloud API limits, imported assets, particles and meshes, economy design. Use for ANY Roblox game work in Luau/Rojo before building or debugging UI, saving, monetization, Studio verification, publishing, or calling the Open Cloud API.
---

# Roblox lessons (from shipped games)

Facts below were each learned by breaking something. They override generic advice, including other skills. Read the matching reference file before working in that area.

## The ten that bite most often

1. **`TextWrapped = false` after `TextScaled = true` turns TextScaled off.** Set TextScaled last. → `references/ui.md`
2. **`AbsolutePosition` is always measured from below the top bar** (~58 px on phones), even in `IgnoreGuiInset` guis. Screen Y = AbsolutePosition.Y + inset. → `references/ui.md`
3. **`AutomaticCanvasSize` undercounts rows sized by `UIAspectRatioConstraint`**, cutting off the end of lists. Size the canvas from `UIListLayout.AbsoluteContentSize`. → `references/ui.md`
4. **Never rename a DataStore to change the save format** — that's a new empty store (everyone's progress gone). Migrate step by step instead. → `references/data.md`
5. **Purchases: one receipt handler, dedupe by `PurchaseId` stored in the player's own save**, `NotProcessedYet` whenever unsure. → `references/monetization.md`
6. **Coins buyable with Robux make every coin-funded random roll a paid random item**: odds before purchase + `PolicyService.ArePaidRandomItemsRestricted` gating. → `references/monetization.md`
7. **`shared.*` read from MCP `execute_luau` is a sandbox, not the game's.** Use a temporary Script to call real server APIs. → `references/studio-mcp.md`
8. **Kicking the only player during Play start wedges the MCP's Play button** until Play/Stop is pressed by hand in Studio. → `references/studio-mcp.md`
9. **Open Cloud API keys can create passes/products and edit the game page, but can't make a game public, upload thumbnails, or create badges without a spend-Robux scope.** → `references/open-cloud.md`
10. **Third-party models with any script are rejected outright** (backdoors are common). → `references/assets-visuals.md`

## Sharing with the hub

These lessons and the reusable systems live in the public `roblox-hub` repo (usually next to the game as `../roblox-hub`; github.com/rodrigo-guerraa/roblox-hub). When a game builds something reusable and not proprietary (a generic system, a template improvement, a new gotcha), say so once the feature is verified, and port it after the maintainer agrees, following the hub's `CONTRIBUTING.md`: what qualifies, what stays in the game, the quality bar and the process (`scripts/check.sh`, Studio verification in the hub's sandbox, clean commits, pushes only with a go-ahead).

## Reference files

| File | Covers |
| --- | --- |
| `references/ui.md` | Text scaling, insets, canvas sizing, aspect constraints, layering, phone controls, fonts, live-updating lists |
| `references/studio-mcp.md` | Driving Studio through the MCP: contexts, Play, prompts, screenshots, emulator, multi-client, Rojo sync |
| `references/data.md` | ProfileStore, Studio-only stores, migrations, initial-sync remotes, reading live saves |
| `references/monetization.md` | Receipts, passes vs products, pricing, paid random items, ownership gotchas |
| `references/open-cloud.md` | What API keys can and can't do, exact endpoints and scopes, key handling |
| `references/assets-visuals.md` | Safe imports, textured meshes, pivots, particles in daylight, auras |
| `references/economy.md` | Income-scaled rewards, sinks, pacing, exploit-proof product ladders |
| `references/ai-workflow.md` | Habits that keep AI development honest: verification, tooling traps, untrusted content |

When a game teaches a new lesson, add it to the right reference file (and to the top ten if it bites hard).

Files in this skill

  • SKILL.md4 KB
  • references/ai-workflow.md2.3 KB
  • references/assets-visuals.md2.4 KB
  • references/data.md2.2 KB
  • references/economy.md1.4 KB
  • references/monetization.md3.2 KB
  • references/open-cloud.md2.8 KB
  • references/studio-mcp.md3.1 KB
  • references/ui.md3.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.