Yuari
Documentation
Docs/Instances/FireServer

FireServer

Fires a RemoteEvent or UnreliableRemoteEvent through Roblox's own serializer.

Syntax

:FireServer(...) -> ()

Parameters

The method is variadic. Every argument is serialized by the engine's own FireServer implementation. Supported argument types:

TypeDescription
booleanSent as a variant boolean.
numberSent as a variant double.
stringSent as a variant string. Limited to 2048 bytes.
InstanceSent as a variant instance reference.
Vector3Sent as a variant Vector3.

Unsupported argument types raise a Lua error.

Returns

No return value.

Description

FireServer is available on RemoteEvent and UnreliableRemoteEvent instances. It resolves the instance's live bound FireServer method and invokes it on the game thread, building the argument tuple through the engine's variant serializer.

The call is synchronous. If the method is unavailable or an argument cannot be serialized, the script raises an error that appears in the executor output.

Example

local remote = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent")

-- Supported: boolean, number, string, Instance, Vector3
remote:FireServer("Hello", 123, true, Vector3.new(0, 10, 0), workspace)

Notes

  • Only RemoteEvent and UnreliableRemoteEvent expose this method.
  • Supported arguments: booleans, numbers, strings up to 2048 bytes, Instances and Vector3 values.
  • Tables, functions, CFrames, Color3 values and other types are not accepted and raise an error.
  • The call has no return value; failures appear in the executor output.