Signal:Connect()
Signal:Connect(function : callback)
Callback function is called with the following parameters
(Source, Data)
Source can be
local for from this client / the server if its on server
"server" for from server
player instance for from player
Code Examples
local Signal = Operator.GetSignal("Kill") -- assume this was made already
Signal:Connect(function(Source, ...)
print(...)
print(Source)
end)
Signal:Fire("Johny")
Last updated