Operator
  • What is Operator
    • Welcome
    • Why use Operator
    • Carrots Creations
    • Installation
  • API
    • Getting Operator
    • Operator.NewSignal()
    • Operator.GetSignal()
    • Operator.OnSignal()
    • Signal(INSTANCE)
      • Signal.Connections
      • Signal.Replicated
      • Signal.Game
      • Signal:Fire()
      • Signal:Connect()
        • Connection(INSTANCE)
      • Signal:Wait()
      • Signal:ClearConnections()
Powered by GitBook
On this page
  1. API
  2. Signal(INSTANCE)

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")
PreviousConnection(INSTANCE)NextSignal:ClearConnections()

Last updated 2 years ago