roblox-networking
Skill0 starsChanged 11 days agoApache-2.0View on GitHub
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.
8 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- ForgeyClap/Forge-Coreedited, first seen Nov 16, 2026
- gamedev-skills/awesome-gamedev-agent-skillsedited, first seen Nov 11, 2026
- rodrigo-guerraa/roblox-hubtheir own version, first seen Oct 17, 2026
- EL4CTEO/roblox-skillstheir own version, first seen Sep 28, 2026
- TabooHarmony/roblox-braintheir own version, first seen Sep 23, 2026
- nonlooped/roblox-suitetheir own version, first seen Sep 19, 2026
Used with
Projects with it also use roblox-audio, roblox-studio-mcp and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
szlaySkillroblox-audio
Use when implementing Roblox audio playback, spatial sound, music, sound effects, SoundGroups, or dynamic audio effects.
Also in 4 projects that use this
szlaySkillroblox-studio-mcp
Use when working with Roblox Studio through built-in MCP for scripts, scenes, generated assets, input, or playtesting.
Also in 4 projects that use this
sentinelcoreSkillroblox-monetization
Use when developing Roblox games or experiences and need to earn Robux through Game Passes, Developer Products, UGC avatar items, or Premium Payouts — covers both Studio scripting and Creator Hub dashboard setup.
Also in 4 projects that use this
sentinelcoreSkillroblox-security
Use when writing Roblox game scripts that handle player actions, currencies, stats, damage, or any RemoteEvent/RemoteFunction communication. Use when reviewing code for exploitable patterns, implementing anti-cheat logic, validating client requests on the server, or setting up rate limiting.
Also in 4 projects that use this
- +5 more from szlay
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- gamedev-skills/awesome-gamedev-agent-skills★ 9k25% same
- ForgeyClap/Forge-Core★ 263% same
Wrote their own version · 6
- TabooHarmony/roblox-brain★ 224same name
- EL4CTEO/roblox-skills★ 162same name
- nonlooped/roblox-suite★ 39same name
- luumenlabs/luau-skills★ 12same name
- rodrigo-guerraa/roblox-hub★ 2same name
- szlay/roblox-base★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository75 other files it gives its agents.
- routerSkill
- ai-behavior-trees-utility-aiSkill
- audio-designSkill
- camera-systemsSkill
- create-game-assetsSkill
- dialogue-systemsSkill
- game-aiSkill
- game-feelSkill
- game-ui-uxSkill
- input-systemsSkill
- level-designSkill
- performance-optimizationSkill
- physics-tuningSkill
- procedural-genSkill
- save-systemsSkill
- shader-programmingSkill
- card-gameSkill
- fps-shooterSkill
- platformerSkill
- puzzleSkill
- roguelikeSkill
- rpgSkill
- survival-craftingSkill
- tower-defenseSkill
- visual-novelSkill
- godot-2d-movementSkill
- godot-3d-essentialsSkill
- godot-animationSkill
- godot-audioSkill
- godot-csharpSkill
- godot-exportSkill
- godot-gdscript-headless-testingSkill
- godot-gdscriptSkill
- godot-multiplayerSkill
- godot-nodes-scenesSkill
- godot-physicsSkill
- godot-resourcesSkill
- godot-shadersSkill
- godot-signals-groupsSkill
- godot-tilemapSkill
- godot-ui-controlSkill
- demarrer-un-jeuSkill
- bevy-ecsSkill
- love2d-coreSkill
- pygame-coreSkill
- roblox-charactersSkill
- roblox-datastoresSkill
- roblox-luauSkill
- roblox-physicsSkill
- roblox-studio-workflowSkill
- roblox-uiSkill
- unity-animationSkill
- unity-build-pipelineSkill
- unity-csharp-scriptingSkill
- unity-input-systemSkill
- unity-navmeshSkill
- unity-physicsSkill
- unity-scriptableobjectsSkill
- unity-tilemap-2dSkill
- unreal-behavior-treesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Use to design, implement, debug, or secure cross-boundary Roblox communication.
- Distinctive: line 20
Use when a remote trusts client values, an exploiter can target arbitrary Instances, messages spam services, streamed objects are missing, …
- Very specific: line 35
Validate in layers: Check type/shape/finiteness, allowlisted value, Instance class and ancestry, player permissions/state, distance/line of …
- Very specific: line 40
Replicate narrowly: Use FireClient for private or local facts.
- Distinctive: line 41
Avoid sending replicated properties again unless the client needs a distinct presentation event.
- Very specific: line 56
Never invoke a client synchronously from the server.
- Very specific: line 155
Read references/validation-and-testing.md for payload rules, Instance/finiteness checks, replication design, and the required multi-client …
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
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
endAssign 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).RemoteEventandUnreliableRemoteEventalso share a throttle of roughly 500 calls/second per client, counted across all remotes of that type — which is what a legitimate player hits before any attacker does. - 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.
Common failures
| Symptom | Likely cause | Remedy |
| exploiter chooses damage/price | outcome accepted from client | send intent/ID; derive and apply on server |
| arbitrary object can be deleted | only typeof(Instance) checked | validate class, ancestry, ownership, state, and allowlisted operation |
| server stalls on a player | server invokes client RemoteFunction | replace with asynchronous events |
| valid player triggers throttling | per-frame reliable messages | lower frequency, state replication, batching, or unreliable cosmetics |
| old packet reverses new effect | unordered unreliable samples treated as commands | make samples replaceable/versioned; use reliable event for transitions |
| remote breaks after respawn | cached character/root | resolve current character during handling and reject stale state |
| private data leaks | FireAllClients used by default | use FireClient and minimal payloads |
| distance check is bypassed | client-owned object moved near target | anchor/server-own critical object and validate full server context |
Resources
- Read
references/validation-and-testing.mdfor 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/remotehttps://create.roblox.com/docs/scripting/security/client-server-boundaryhttps://create.roblox.com/docs/physics/network-ownershiphttps://create.roblox.com/docs/studio/testing-modes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

