Signal:Wait()

Signal:Wait(args : Optional)

Waits until the signal is fired and if args are there the signals args equal the inputted args

Code Examples

local Signal = Operator.NewSignal()
task.spawn(function()
    task.wait(2)
    Signal:Fire()
end)
Signal:Wait()
print("it was fired")

Last updated