Skip to content

Events

Overview

Provides methods to access ClientEventWrappers on the client-side.

Properties

Packet

Skeptic.Events.Packet: Packet

{version4}

A reference to Packet used by the Skeptic Framework.

Methods

GetEventAsync

Skeptic.Events:GetEventAsync(
    name: string
) -> ClientEventWrapper

See: ClientEventWrapper

Waits for a RemoteEvent created by Skeptic.Events:GetEvent() on the server and returns it as soon as possible. This method will wait for max. 30s before timing out and throwing an error.

Warning

RemoteEventWrappers must be created on the server before being accessed on the client.

GetPacketEvent

Skeptic.Events:GetPacketEvent<A..., B...>(
    name: string, ...: A...
) -> PacketEventWrapper<A..., B...>

{version4}

See: PacketEventWrapper

Returns a wrapper for a Packet. See Packet Networking Library by @5uphi.

Info

For events that are fired extremely rapidly (like gun bullets, or updating a CFrame from the client to all other clients), Packets use significantly less data over the network.