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

Operator.NewSignal()

Replicated and Game Signals require an ID

Creating a signal with an id of another signal overrides it IF replicated it replicates

Client can not override on server.

Operator.NewSignal(ID : Optional String, Replicated : Optional Boolean, Game : Optional Boolean)

ID is used to get it from GetSignal

REPLICATED determains if it creates the signal on the server/clients also

GAME determains if it is replicated across the entire game using MessageService

Code Examples

local Signal = Operator.NewSignal()
Signal:Connect(function(source, data)
    print(source) --> Prints Source See Signal Connection for more info
    print(data) 
end)
Signal:Fire("Hello World")
PreviousGetting OperatorNextOperator.GetSignal()

Last updated 2 years ago