roblox-networking
하는 일
이 스킬은 빌더가 Roblox 플레이어 기기와 서버 사이의 메시지를 안전한 방식으로 만들도록 돕습니다. 부정행위, 스팸, 게임 상태 불일치를 걱정하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Roblox 게임에서 RemoteEvents와 RemoteFunctions를 설계하거나 고칠 때.
- ✓플레이어가 거짓 값을 보내거나 리모트에 스팸을 보내 부정행위를 할 수 있을 때.
- ✓게임 객체가 플레이어마다 다르게 보이거나 일부 클라이언트에서 빠져 있을 때.
스킬 링크
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/other-engines/roblox-networking/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“플레이어가 내 Roblox 리모트에 가짜 피해량을 보낼 수 있어요. 이를 어떻게 막나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
모든 리모트와 그 보내는 쪽을 나열하고, 알맞은 메시지 타입을 고르고, 서버가 스스로 알아낼 수 없는 것만 보내며, 모든 값을 서버에서 확인하도록 에이전트를 안내합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
서버가 결과를 정해야 하는 이유는 무엇인가요?
이 스킬은 게임 결과는 서버가 맡고, 클라이언트 메시지는 사실이 아니라 요청으로 취급하도록 합니다.
기본 Luau도 다루나요?
아니요. 기본 스크립팅은 별도의 Roblox Luau 스킬에서 다룹니다.
데이터 저장도 다루나요?
아니요. 저장된 데이터는 별도의 DataStore 스킬에서 다룹니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 6.6k
- 순위
- #13839
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
router
6.6k에이전트가 엔진과 작업 종류를 파악해, 요청에 맞는 게임 개발 스킬을 골라 주도록 돕습니다.
ai-behavior-trees-utility-ai
6.6k에이전트가 적이나 캐릭터가 우선순위와 점수로 행동을 고르는 행동 트리와 유틸리티 AI 시스템을 만들도록 돕습니다.
audio-design
6.6k에이전트에게 게임 오디오 믹싱을 가르칩니다. 버스, 데시벨 음량, 대사 아래에서의 덕킹, 적응형 음악, 효과음 변주를 다룹니다.
camera-systems
6.6k에이전트가 부드럽게 따라가고, 레벨 안에 머물고, 3D에서 회전하거나 둘러볼 수 있는 게임 카메라를 만들도록 돕습니다.