본문으로 건너뛰기
Skillpedia
일반 코딩6.6k · #13839

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/other-engines/roblox-networking/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  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

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):

  • 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(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.

repo: gamedev-skills/awesome-gamedev-agent-skills

인기도

GitHub 스타
6.6k
순위
#13839
라이선스
Apache-2.0
업데이트
2026. 10. 28.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬