roblox-networking
What it does
This skill helps builders create the messages between a Roblox player's device and the server in a safe way. It is for developers worried about cheating, spam or out-of-sync game state.
When to use it
- āWhen you are designing or fixing RemoteEvents and RemoteFunctions in a Roblox game.
- āWhen players could cheat by sending false values or by spamming a remote.
- āWhen game objects look different for each player or are missing on some clients.
Skill link
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/other-engines/roblox-networking/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentās skills folder.
Example of what to ask your AI
āPlayers can send fake damage numbers to my Roblox remotes, how do I stop that?ā
5 new skills a week. 1 minute to read.
How it works
It guides the agent to list every remote and its sender, choose the right message type, send only what the server cannot work out itself, and check every value on the server.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
- 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.
- Classify each message. Client request, server fact, or ephemeral cosmetic sample. Choose reliable event, unreliable event, or request/response from semanticsānot convenience.
- 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.
- 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.
- 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.
- Replicate narrowly. Use
FireClientfor private or local facts; broadcast only shared facts. Avoid sending replicated properties again unless the client needs a distinct presentation event. - 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.
- 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
| Primitive | Use | Do not use |
|---|---|---|
RemoteEvent |
ordered, reliable one-way requests/facts | continuous samples where newer replaces older |
UnreliableRemoteEvent |
ephemeral cosmetic/continuous state tolerant of loss and reordering | purchases, damage decisions, inventory, one-shot state transitions |
RemoteFunction |
bounded client-to-server query that truly needs an immediate reply | server-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):
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 limit, over 1000 bytes, 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.
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(func
FAQ
Why should the server decide results?
The skill keeps the server in charge of game results and treats client messages as requests, not facts.
Does this cover basic Luau?
No. Basic scripting is covered by a separate Roblox Luau skill.
Does this cover saving data?
No. Saved data is covered by a separate DataStore skill.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 6.6k
- Ranking position
- #13839
- License
- Apache-2.0
- Updated
- 10/28/2026
Comments
- ā¦
More skills from this repository
router
6.6kHelps your agent pick the right game development skill for a request by detecting your engine and the kind of task you need.
ai-behavior-trees-utility-ai
6.6kHelps your agent build a behavior tree and utility AI system for game enemies and characters that choose actions by priority and score.
audio-design
6.6kTeaches your agent game audio mixing: buses, decibel volume, ducking under dialogue, adaptive music and sound effect variation.
camera-systems
6.6kHelps your agent build game cameras that follow smoothly, stay inside the level, and orbit or look around in 3D.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.