Hi. So, while working with BridgeNet, I came across something that I can’t call a bug, but it NEED to be fixed
so, I have a defibrillator that has server and local scripts located in the tool. they establish a connection with each other, and everything would be fine, but every time after “disconnecting” one of the bridges (for example, the death of a character. after his death, when the defibrillator is equipped and two NEW defibrillator usage bridges are created) the event on the server is triggered more and more often
For example, an event on server is usually triggered once. If a player dies with a defibrillator in his hands, the event will be triggered twice on further use and so on.
if someone has a similar problem, then please help with advice
heres the code
-- Client side
local DefUseEvent = BridgeNet.ReferenceBridge("DefibUse")
--no context needed
DefUseEvent:Fire()
Server side
DefUseEvent:Connect(function(plr)
print(plr) -- prints two times is player died with def in hands
end)