Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 698 Bytes

File metadata and controls

28 lines (21 loc) · 698 Bytes

PromisedSignal

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)

Download
GitHub
Roblox

Inspired by stravant's GoodSignal.