MCPInstall

roblox-networking

Design and harden Roblox client/server networking with RemoteEvent, RemoteFunction, and UnreliableRemoteEvent; server authority, argument and Instance validation, rate limits, proximity/ownership checks, targeted replication, streaming, lifecycle, prediction, and reconciliation. Use for Roblox remotes, exploits, request spam, multiplayer replication, network ownership, high-frequency cosmetic updates, or server/client desynchronization.

Installs
3.8K
Last 24h
+312
Trending rank
#934
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/gamedev-skills/awesome-gamedev-agent-skills --skill roblox-networking
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads roblox-networking automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Roblox networking

Build explicit request and replication contracts in which the server decides authoritative game state and clients provide input or intent. Targets Roblox's rolling platform APIs. This skill goes deeper than the networking primer in roblox-luau.

When to use

  • Use to design, implement, debug, or secure cross-boundary Roblox communication.
  • Use when a remote trusts client values, an exploiter can target arbitrary Instances, messages spam services, streamed objects are missing, or clients disagree with the server.

When not to use: basic Luau/services belong to roblox-luau; persistent state belongs to roblox-datastores; physical ownership mechanics also compose with roblox-physics.

Workflow

  1. Inspect the existing protocol. Find every remote and both endpoints; document direction, sender, payload, frequency, authority, validation, and consumers. Reuse the canonical remote folder—do not create a duplicate because discovery was skipped.
  2. Classify each message. Client request, server fact, or ephemeral cosmetic sample. Choose reliable event, unreliable event, or request/response from semantics—not convenience.
  3. Minimize the payload. Send stable identifiers and intent. Do not send a price, damage, ownership result, arbitrary path, or computed outcome the server can derive.
  4. Validate in layers. Check type/shape/finiteness, allowlisted value, Instance class and ancestry, player permissions/state, distance/line of sight where relevant, server cooldown, and rate budget before doing expensive work.
  5. Apply on the server. The server resolves targets and mutates health, inventory, currency, cooldowns, and progression. Client-side checks improve UX but grant no trust.
  6. Replicate narrowly. Use FireClient for private or local facts; broadcast only shared facts. Avoid sending replicated properties again unless the client needs a distinct presentation event.
  7. Handle time and lifecycle. Requests may arrive after death, respawn, streaming changes, or disconnect. Resolve the current character/state during handling and clean per-player limiter data.
  8. Verify with Server & Clients. Exercise normal, malformed, spam, out-of-range, stale character, rapid respawn, leaving, simultaneous players, targeted, and broadcast cases. Inspect server and each client Output separately.

Choose the transport

PrimitiveUseDo not use
RemoteEventordered, reliable one-way requests/factscontinuous samples where newer replaces older
UnreliableRemoteEventephemeral cosmetic/continuous state tolerant of loss and reorderingpurchases, damage decisions, inventory, one-shot state transitions
RemoteFunctionbounded client-to-server query that truly needs an immediate replyserver-to-client invocation; long/uncertain work; ordinary commands

Never invoke a client synchronously from the server. A client may disconnect, error, or never return. Prefer server RemoteEvent:FireClient() and a separate response event when needed.

Delivery rules that change handler design (per connection, per direction):

  • RemoteEvent messages arrive in send order, even across different RemoteEvents, 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 RemoteEvent faster than the throttle is delayed, not dropped; the backlog still arrives. UnreliableRemoteEvent traffic over the limit, over 1000 bytes, or with no handler connected is discarded.
  • Messages sent before a handler connects are queued (bounded) for RemoteEvents and RemoteFunctions. There is no ordering guarantee between a RemoteFunction and a RemoteEvent; use one remote type or your own sequence number when order matters.

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 target:IsA("Model") then return end
    if not target:IsDescendantOf(Workspace.Characters) then return end
    local targetHumanoid = target:FindFirstChildOfClass("Humanoid")
    local targetRoot = target:FindFirstChild("HumanoidRootPart")
    local character = player.Character
    local root = character and character:FindFirstChild("HumanoidRootPart")
    local humanoid = character and character:FindFirstChildOfClass("Humanoid")
    if not targetHumanoid or not targetRoot or not root or not humanoid then return end
    if humanoid.Health <= 0 or targetHumanoid.Health <= 0 then return end
    if (root.Position - targetRoot.Position).Magnitude > RANGE then return end
    if not serverCombatStateAllowsAttack(player, now) then return end

    targetHumanoid:TakeDamage(serverDamageFor(player))
end)

Players.PlayerRemoving:Connect(function(player)
    lastRequest[player] = nil
end)

This is still only a compact example: a real melee system may require server-known attack windows, line-of-sight/shape checks, team rules, and lag policy. Do not treat one distance check as security.

Pattern: token bucket at the boundary

type Bucket = {tokens: number, updatedAt: number}
local buckets: {[Player]: Bucket} = {}
local CAPACITY, REFILL_PER_SECOND = 6, 3

local function consume(player: Player, cost: number): boolean
    local now = os.clock()
    local bucket = buckets[player] or {tokens = CAPACITY, updatedAt = now}
    bucket.tokens = math.min(CAPACITY,
        bucket.tokens + (now - bucket.updatedAt) * REFILL_PER_SECOND)
    bucket.updatedAt = now
    if bucket.tokens < cost then buckets[player] = bucket; return false end
    bucket.tokens -= cost
    buckets[player] = bucket
    return true
end

Assign cost by server impact. Reject cheaply before datastore calls, cloning, raycasts, or broad replication. Log aggregate abuse signals, not one warning per rejected packet.

Replication, streaming, and prediction

  • Replicated Instances/properties are already a state channel. Use remotes for intent, private state, or presentation cues, not an unconditional parallel copy of the DataModel.
  • With instance streaming, a valid server Instance may not exist on a client. Send a stable ID and tolerate absence; do not wait forever for optional streamed content.
  • High-rate cosmetic data may use UnreliableRemoteEvent; make each sample self-contained because delivery and order are not guaranteed. Payloads over 1000 bytes are dropped (Studio Output reports the overage). Client-to-server traffic is throttled at roughly 500 calls/second per client for each remote type, shared by every RemoteEvent (and separately by every UnreliableRemoteEvent) in the experience — which is what a legitimate player hits before any attacker does.
  • Without Server Authority, predict only latency-sensitive reversible presentation. Include a client sequence/command ID; the server returns authoritative state and acknowledgement; the client corrects smoothly. Never let prediction award damage, currency, inventory, or progression.
  • Network ownership improves responsiveness but lets that client influence physical simulation. Validate gameplay consequences on the server; ownership is not authorization.

Places that use Server Authority

Check Workspace.AuthorityMode before designing prediction. When it is Server (opt-in, fully released 2026-07-09; setting it also enables next-generation replication, the Input Action System for player scripts, deferred signals, fixed simulation, and streaming), the engine supplies prediction, rollback, and resimulation, and gameplay objects can stay server-owned without input lag. Work with it instead of building a parallel scheme:

  • Put core gameplay in a ModuleScript required by both a server Script and a client LocalScript, with logic in RunService:BindToSimulation() callbacks. Only properties and methods tagged Simulation Access are allowed there; use time() (synchronized and rewound during resimulation), not os.clock(), tick(), or os.time().
  • Send simulation-affecting input through InputActions (their InputContext must sit under the owning Player), not UserInputService events. Keep synchronized custom state in Attributes on predicted instances (only the first 64 per instance replicate; names and string values up to 50 characters) and write them only inside bound simulation functions.
  • Remotes still carry discrete facts and requests, but they are not ordered with property and attribute replication. Play effects and sounds from RenderStepped, reading simulation results, so a mispredicted frame does not trigger them twice.
  • RunService:SetPredictionMode() forces prediction on or off per instance (client-only call). Test with Studio's Network Simulator to add latency, jitter and loss.

Server Authority is a project-wide migration. Do not switch AuthorityMode on an existing place as a side effect of another task; report it as an option instead.

Common failures

SymptomLikely causeRemedy
exploiter chooses damage/priceoutcome accepted from clientsend intent/ID; derive and apply on server
arbitrary object can be deletedonly typeof(Instance) checkedvalidate class, ancestry, ownership, state, and allowlisted operation
server stalls on a playerserver invokes client RemoteFunctionreplace with asynchronous events
valid player triggers throttlingper-frame reliable messageslower frequency, state replication, batching, or unreliable cosmetics
old packet reverses new effectunordered unreliable samples treated as commandsmake samples replaceable/versioned; use reliable event for transitions
remote breaks after respawncached character/rootresolve current character during handling and reject stale state
private data leaksFireAllClients used by defaultuse FireClient and minimal payloads
distance check is bypassedclient-owned object moved near targetanchor/server-own critical object and validate full server context
one cooldown lets two requests throughhandler yields between check and applyclaim cooldown/in-progress state before the first yield
effect plays twice under Server Authorityeffect triggered inside resimulated codetrigger from RenderStepped reading simulation state

Resources

  • Read references/validation-and-testing.md for payload rules, Instance/finiteness checks, replication design, and the required multi-client abuse matrix.

Related skills

  • roblox-luau — execution locations and basic RemoteEvent mechanics.
  • roblox-characters — respawn-safe character resolution.
  • roblox-physics — network ownership, ray/overlap validation, and physical consequences.
  • roblox-studio-workflow — Server & Clients testing and Output inspection.

Primary references

  • https://create.roblox.com/docs/scripting/events/remote
  • https://create.roblox.com/docs/scripting/security/client-server-boundary
  • https://create.roblox.com/docs/projects/server-authority
  • https://create.roblox.com/docs/physics/network-ownership
  • https://create.roblox.com/docs/studio/testing-modes

FAQ

What does the roblox-networking skill do?

Design and harden Roblox client/server networking with RemoteEvent, RemoteFunction, and UnreliableRemoteEvent; server authority, argument and Instance validation, rate limits, proximity/ownership checks, targeted replication, streaming, lifecycle, prediction, and reconciliation. Use for Roblox remotes, exploits, request spam, multiplayer replication, network ownership, high-frequency cosmetic updates, or server/client desynchronization.

How do I install roblox-networking?

Run npx skills add https://github.com/gamedev-skills/awesome-gamedev-agent-skills --skill roblox-networking in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/roblox-networking/ (personal) or .claude/skills/roblox-networking/ (project).

Which AI agents can use roblox-networking?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is roblox-networking safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains roblox-networking?

It is published by gamedev-skills in gamedev-skills/awesome-gamedev-agent-skills. It has 3,834 recorded installs.

More from gamedev-skills/awesome-gamedev-agent-skills

View all →

game-feel

gamedev-skills/awesome-gamedev-agent-skills

Add "juice" and game feel that makes actions satisfying — screen shake, hit-stop/freeze frames, tweened/eased motion, squash & stretch, knockback, and layered audio-visual feedback — as engine-neutral techniques that pair with the detected engine's tween, particle, and camera APIs. Use when the user mentions game feel, juice, "make it feel good/punchy", screen shake, hit stop, screen freeze, easing, squash and stretch, impact frames, or feedback/polish on hits, jumps, pickups, and deaths.

Media & Creative10.2K installs

game-ui-ux

gamedev-skills/awesome-gamedev-agent-skills

Design and build game UI/UX — HUDs, menus, and overlays — that survive every screen: anchor- based responsive layout, resolution/aspect scaling and safe areas, keyboard/gamepad focus navigation, a screen/menu state stack, and event-driven (not polled) HUD updates. Engine- neutral patterns that pair with the detected engine's UI skill. Use when the user mentions HUD, health bar, main menu, pause menu, settings screen, UI layout, anchors, UI scaling, aspect ratio, safe area, controller/keyboard menu navigation, or wiring UI to game state.

Frontend & Design10K installs

level-design

gamedev-skills/awesome-gamedev-agent-skills

Design and build playable levels — the blockout/whitebox-to-playable workflow, player metrics and grid layout, pacing and flow (tension/rest curve), gating and the critical path, and encounter design. Engine-neutral practice. Use when the user mentions level design, blockout/whitebox/greybox, level layout, level pacing, encounter design, or the critical path through a level.

Frontend & Design8.2K installs

performance-optimization

gamedev-skills/awesome-gamedev-agent-skills

Find and fix game performance problems methodically — measure with the engine profiler first, reason about the frame-time budget, locate the CPU-vs-GPU bottleneck, then apply the right fix: object pooling, draw-call batching, fewer allocations/GC spikes, and asset budgets. Engine- neutral method that pairs with each engine's profiler. Use when the user mentions performance, optimize, low/dropping FPS, frame drops, stutter, lag, profiler, frame budget, draw calls, batching, garbage collection/GC spikes, object pooling, or "the game runs slow".

game-ai

gamedev-skills/awesome-gamedev-agent-skills

Design NPC and enemy decision-making with finite state machines, behavior trees, steering behaviors, and A pathfinding — engine-neutral algorithms that pair with the detected engine's navigation API. Use when building enemy AI, an FSM or behavior tree, steering/flocking, or pathfinding, or when the user mentions state machine, behavior tree, blackboard, A, navmesh, seek, or patrol/chase.

Media & Creative7.8K installs

audio-design

gamedev-skills/awesome-gamedev-agent-skills

Implement game audio practice — bus/mixer architecture and gain in decibels, ducking (sidechain), adaptive/dynamic music via layering and re-sequencing, SFX variation, and beat synchronization. Engine-neutral. Use when the user mentions audio mixing, audio buses, adaptive/dynamic music, ducking, SFX variation, music layers, or syncing gameplay to the beat.

Media & Creative7.8K installs

Popular backend & apis skills

View category →

find-skills

vercel-labs/skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

OfficialBackend & APIs4.1M installs

entra-app-registration

microsoft/azure-skills

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.

OfficialBackend & APIs566.7K installs

This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).

Backend & APIs514.8K installs

embedded-captions

heygen-com/hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Backend & APIs453.3K installs

entra-agent-id

microsoft/azure-skills

Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).

OfficialBackend & APIs336.6K installs

neon

neondatabase/agent-skills

Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.

Backend & APIs237.1K installs