A simple Luau module to assist with creating, storing and destroying remotes on Roblox
Simply add the module to your game, run and store it (eg. local Network = require(ReplicatedStorage.Network)
), and use the appropriate syntax listed below.
- A string of either:
- "Callable"
- "Invokable"
- "UnreliableCallable"
There are currently four supported methods of interacting with network-lua:
-
Network.Remotes
(a table[string]: RemoteEvent | RemoteFunction
) of existing remotes -
Network:Reserve("name", RemoteType)
(returns an existing remote or callsNetwork:Create(...)
if one doesn't exist) -
Network:Create("name", RemoteType)
-
Network:Destroy("name")