An implementation of RBXScriptSignal with Promise.
Why PromisedSignal?
- Asynchronous Connections
- Performs almost all the functions that RBXScriptSignal does
- Simple and comfortable
How to use it?
local PromisedSignal = require(game.Path.To.PromisedSignal)
local HelloPlayer = PromisedSignal.new()
HelloPlayer:Connect(function(Player)
print("Hello, " .. Player.Name .. "!")
end)
game.Players.PlayerAdded:Connect(function(Player)
HelloPlayer:FireAsync(Player)
end)Inspired by stravant's GoodSignal.