Roblox
Avoid common Roblox mistakes — server/client security, DataStore pitfalls, memory leaks, and replication gotchas.
от clawic★ 23 звезды на GitHub
Установить Roblox в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Server vs Client
- Server scripts in ServerScriptService — never trust client data
- LocalScripts in StarterPlayerScripts or StarterGui — client-only
- RemoteEvent for fire-and-forget — RemoteFunction when server needs to return value
- ALWAYS validate on server — client can send anything, exploiters will
Security
- Never trust client input — validate everything server-side
- Server-side sanity checks — is player allowed? Is value reasonable?
- FilteringEnabled is always on — but doesn't protect your RemoteEvents
- Don't expose admin commands via RemoteEvents — check permissions server-side
DataStore
:GetAsync()and:SetAsync()can fail — wrap in pcall, retry with backoff- Rate limits: 60 + numPlayers × 10 requests/minute — queue writes, batch when possible
:UpdateAsync()for read-modify-write — prevents race conditions- Session locking — prevent data loss on rejoin, use
:UpdateAsync()with check - Test with Studio API access enabled — Settings → Security → API Services
Memory Leaks
- Connections not disconnected — store and
:Disconnect()when done :Destroy()instances when removed — sets Parent to nil and disconnects events- Player leaving without cleanup —
Players.PlayerRemovingto clean up - Tables holding references — nil out references you don't need
Character Handling
- Character may not exist at PlayerAdded — use
player.CharacterAdded:Wait()or event - Character respawns = new character — reconnect events on CharacterAdded
Humanoid.Diedfires on death — for death handling logicLoadCharacter()to force respawn — but prefer natural respawn usually
Replication
- ServerStorage: server-only — clients can't see
- ReplicatedStorage: both see — shared modules and assets
- ReplicatedFirst: loads first on client — loading screens
- Workspace replicates to clients — but server is authority
Services Pattern
game:GetService("ServiceName")— don't index directly, fails in different contexts- Cache service references —
local Players = game:GetService("Players") - Common: Players, ReplicatedStorage, ServerStorage, RunService, DataStoreService
RunService
Heartbeatafter physics — most gameplay logicRenderSteppedclient only, before render — camera, visual updatesSteppedbefore physics — physics manipulation- Avoid heavy computation every frame — spread over multiple frames
Common Mistakes
wait()deprecated — usetask.wait()for reliable timingspawn()deprecated — usetask.spawn()ortask.defer()- Module require returns cached — same table across requires, changes shared
:Clone()doesn't fire events — manually fire if needed- Part collisions with CanCollide false — still fire Touched, use CanTouch
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
FAQ
Что делает скилл Roblox?
Avoid common Roblox mistakes — server/client security, DataStore pitfalls, memory leaks, and replication gotchas.
Как установить скилл Roblox?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Roblox запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…