Bridges

Bridges are a easier version of Knight Remotes to provide a much easier solution.

--@Knight.Shared.Services.Bridge.new(BridgeName, IsShared  (optional; default false), Callback (optional; default false))

-- If you are registering something shared, you must register it server-sided.

-- Register bridge with callback
Knight.Shared.Services.Bridge.new("Example", true, function(Player)
	print("Got event")
end)

-- Register bridge without callback
local bridge = Knight.Shared.Services.Bridge.new("Example", true)

-- Connection onto the bridge
bridge.Event:Connect(function(Player)

end)

Last updated

Was this helpful?