function Class.new()
local self = {}
self.Signal = Signal.new()
return setmetatable(self, Class)
end
object.Signal:Connect(function()
print("Fired")
end)
yeah, thats it!!!
one cool thing that you can do with signals is that if you wrap them with cleanup libraries like Janitor, you can destroy the cleanup object and the signals attached will be destroyed along with it.
signals are really cool to use overall, hope you have fun playing around with 'em!