roblox-networking
БесплатноБез исполняемых скриптовНе проверенRoblox client-server networking and anti-exploit: RemoteEvent and RemoteFunction contracts, server authority, rate limits, hit validation and replication. Use…
от gamedev-skills★ 12 656 звёзд на GitHubОб этом скилле
Roblox networking
The server decides authoritative state; clients send input or intent. This skill owns the request contract across that boundary: what is sent, who validates it, who receives the result, and how it is tested with more than one client.
Workflow
- Inventory the existing protocol. Find every remote and both endpoints before adding one:
rg -n "OnServerEvent|OnServerInvoke|OnClientEvent|InvokeClient|FireAllClients" src(or the Studio MCPscript_greptool). For each, note direction, sender, payload, frequency, validation, and consumers. Reuse the canonical remote folder; a duplicate remote created because discovery was skipped usually means two handlers apply the same action. - Classify each message. Client request, server fact, or ephemeral cosmetic sample. Pick reliable event, unreliable event, or request/response from that, not from convenience.
- Minimize the payload. Send stable IDs and intent. Never send a price, damage, ownership result, arbitrary path, or any outcome the server can derive.
- Validate in layers, cheapest first. Rate budget, type/shape/finiteness, allowlisted value, Instance class and ancestry, player permission and state, distance or line of sight, cooldown. Only then do expensive work.
- Apply on the server. The server resolves targets and mutates health, inventory, currency, cooldowns, and progression. Client checks are UX only.
- Replicate narrowly.
FireClientfor private or local facts; broadcast only shared facts. Replicated properties are already a state channel, so do not mirror them through remotes. - Handle time and lifecycle. Requests arrive after death, respawn, streaming changes, or
disconnect. Resolve the current character during handling and clear per-player tables on
PlayerRemoving. - Run the abuse matrix and capture Output from every side. With the Studio MCP server
connected (
list_roblox_studiosreturns a place), start play withstart_stop_play, drive the pure validator fromexecute_luauon theServerdatamodel with valid, malformed, NaN, wrong Instance and burst inputs, then readget_console_output.start_stop_playis one solo client, so for targeted versus broadcast delivery and two-player cases ask the user to run Server & Clients with two clients and paste the server and both client Output panes. Report each case as executed, prepared but not run, or unverified.
Choose the transport
| Primitive | Use | Do not use |
|---|---|---|
RemoteEvent |
ordered, reliable one-way requests and facts | continuous samples where newer replaces older |
UnreliableRemoteEvent |
ephemeral cosmetic or continuous state that tolerates loss and reordering | purchases, damage, inventory, one-shot transitions |
RemoteFunction |
bounded client-to-server query that truly needs a reply | server-to-client invocation, long work, ordinary commands |
Never InvokeClient from the server: a client that errors makes the server error, a client that
leaves makes it throw, and a client that never returns makes it yield forever. Use FireClient
plus a separate response event.
Delivery rules that change handler design (per connection, per direction):
RemoteEventmessages arrive in send order, even across differentRemoteEvents, but order covers when each handler starts. A handler that yields (task.wait,WaitForChild, a DataStore call) lets the next message from the same player start before it resumes, so check-then-yield-then-apply code can approve two requests. Claim the cooldown or mark the request in progress before the first yield.- A client firing a
RemoteEventfaster than the throttle is delayed, not dropped; the backlog still arrives.UnreliableRemoteEventtraffic over the throttle or size cap, or with no handler connected, is discarded. - Messages sent before a handler connects are queued (bounded) for
RemoteEvents andRemoteFunctions. There is no ordering guarantee between aRemoteFunctionand aRemoteEvent; use one remote type or your own sequence number when order matters. - The client-to-server throttle is shared by every remote of the same type in the experience, so a legitimate player sending per-frame reliable events hits it before any attacker does.
Pattern: validate before resolving gameplay
-- ServerScriptService/CombatRequests.server.luau
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")
local attack = ReplicatedStorage.Remotes.Attack
local lastRequest: {[Player]: number} = {}
local RANGE = 12
local COOLDOWN = 0.25
attack.OnServerEvent:Connect(function(player: Player, target: unknown)
local now = Workspace:GetServerTimeNow()
if now - (lastRequest[player] or -math.huge) < COOLDOWN then return end
lastRequest[player] = now
if typeof(target) ~= "Instance" or not
Установить roblox-networking в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл roblox-networking?
Roblox client-server networking and anti-exploit: RemoteEvent and RemoteFunction contracts, server authority, rate limits, hit validation and replication. Use when a remote trusts the client, exploiters spam remotes or gain items, or hits register wrongly. Not for Luau basics (`roblox-luau`), saving (`roblox-datastores`) or force and raycast APIs (`roblox-physics`).
Как установить скилл roblox-networking?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл roblox-networking запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic