Skip to content

Networking

Server/Client communication for Hermes


networking:Ask

Asks the server/client a question, and returns and answer

Parameters

ParameterDescription
nameThe name of the remote.
playerOrAnyIf on server, specify the player you want to fire the remote to.
If on client, you can pass anything.
...Any other values you want to send, except functions (due to Roblox restrictions).

Signature

luau
networking.Ask(_self: networking, name: string, playerOrAny: Player | any, ...: any): any?




networking:Tell

Tells the server/client to do something.

Parameters

ParameterDescription
nameThe name of the remote.
playerOrAnyIf on server, specify the player you want to fire the remote to.
If not a player, fires all clients.
...Anything you want to send, except functions (due to Roblox restrictions).

Signature

luau
networking.Tell(_self: networking, name: string, playerOrAny: Player | any, ...: any)




networking:TellUnreliably

Tells the server/client to do something, but with unreliable remote events.

Parameters

ParameterDescription
nameThe name of the remote.
playerOrAnyIf on server, specify the player you want to fire the remote to.
If not a player, fires all clients.
...Anything you want to send, except functions (due to Roblox restrictions).

Signature

luau
networking.TellUnreliably(_self: networking, name: string, playerOrAny: Player | any, ...: any)




networking:ListenToTell

Listens to when the client/server tells the server/client to do something. Returns an RBXScriptConnection

Signature

luau
networking.ListenToTell(_self: networking, name: string, callback: (Player | any, any) -> ()): RBXScriptConnection




networking:ListenToUnreliableTell

Listens to when the client/server tells the server/client to do something unreliable. Returns an RBXScriptConnection.

Signature

luau
networking.ListenToUnreliableTell(_self: networking, name: string, callback: (Player | any, any) -> ()): RBXScriptConnection




networking:ListenToAsk

Listens to when the client/server ask the server/client something. Returns a cleanup function.

Signature

luau
networking.ListenToAsk(_self: networking, name: string, callback: (Player | any, any) -> ()): () -> ()




networking:Wait

Yields until the given remote is fired.

Signature

luau
networking.Wait(_self: networking, name: string)




networking:WaitUnreliably

Yields until the given unreliable remote is fired.

Signature

luau
networking.WaitUnreliably(_self: networking, name: string)

Released under the MIT License.