数据与研究

roblox-remote-events

sentinelcore/ro…x-skills

Use when implementing client-server communication in Roblox, firing events between LocalScripts and Scripts, passing data across the network boundary, syncing game state, or defending against exploits that abuse RemoteEvents or RemoteFunctions.

  • 587 次安装
  • 29 星标
  • 收录于

安装命令

npx skills add https://github.com/sentinelcore/roblox-skills --skill roblox-remote-events

SKILL.md

Roblox Remote Events & Functions

RemoteEvent vs RemoteFunction

Type Direction Returns value? Use when
RemoteEvent Any direction No (fire-and-forget) Notifying server of player action, broadcasting state
RemoteFunction Client→Server Yes (yields caller) Client needs a result back (e.g. fetch inventory)
UnreliableRemoteEvent Any direction No High-frequency updates where dropped packets are fine

Default to RemoteEvent. Avoid server→client RemoteFunction — an exploiter's frozen callback stalls your server thread indefinitely.


Where to Put Remotes

Always store Remotes in ReplicatedStorage. Create them from a server Script that runs before any LocalScript.

Roblox Remote Events & Functions

RemoteEvent vs RemoteFunction

Type Direction Returns value? Use when
RemoteEvent Any direction No (fire-and-forget) Notifying server of player action, broadcasting state
RemoteFunction Client→Server Yes (yields caller) Client needs a result back (e.g. fetch inventory)
UnreliableRemoteEvent Any direction No High-frequency updates where dropped packets are fine

Default to RemoteEvent. Avoid server→client RemoteFunction — an exploiter's frozen callback stalls your server thread indefinitely.


Where to Put Remotes

Always store Remotes in ReplicatedStorage. Create them from a server Script that runs before any LocalScript.