Events
class Publisher {
event SampleEvent: (sender: any, text: string),
function RaiseSampleEvent(text: string)
SampleEvent.Invoke(self, text)
end
}function OnInvoked(sender, text: string)
print("SampleEvent has been invoked!")
end
local publisher: Publisher = Publisher()
publisher.SampleEvent += OnInvokedLast updated