Skip to main content

ProNet.newSignal 🟪

Creates a new signal (or gets an existing signal with the given name).

Parameters:

NameTypeDescription
signalNamestringThe name of the signal
optionsProNet.OptionsThe Options for the new signal

Returns:

NameTypeDescription
newSignalProNet.SignalReturns a signal connection

Example:

--Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")

--Dependencies
local ProNet = require(ReplicatedStorage.ProNet)

local testSignal : ProNet.Signal = ProNet.newSignal("TestSignal", {
signalType = ProNet.SignalType.Event,
protected = false,
requestLimit = 5,
requestResetTime = 3
})