Forest Logo
search
package_2

luausignal

By @ffrostfall

Roblox

Mirrored

luausignal

Documentation


luausignal is a signal implementation written for modern Luau, with modern best practices.

local signal = require(path.to.signal)

local tookDamage: signal.Identity<Player, number> = signal()

tookDamage:connect(function(player, amount)
	print(`player { player.Name } took { amount } damage!`)
end)

tookDamage:fire(Players.theReader101, 50)

It's a table. Don't worry about memory leaks.

luausignal is just a table, with a metatable. The connections are just functions in an array. This means that it will be garbage collected.

Package Details

Install command (Click to copy)


Version

0.7.0

License

MIT

check_circle

Safe for commercial use

infoLicense identified from the packaged LICENSE file; the manifest declared none.

Automated license review — not legal advice.