Skip to content

Event

A client-sided event.

Properties


Reliable

Whether or not the event uses a reliable remote event.

  • boolean

Methods


Fire

Fires an event which sends data to the server, equivalent to RemoteEvent:FireServer.

Parameters

  • data: ...any
    The data that should be sent to the server

Returns

  • void

FireNow

Same as Fire but does not batch the call / wait until the next frame.

Parameters

  • data: ...any
    The data that should be sent to the server

Returns

  • void

Listen

Listens for the event to be fired by the server, then runs the provided function.

Parameters

  • listener: (...: any) -> ()
    The function to call when data is recieved

Returns

  • void