I have a module that hangs without warning when firing a bindable event:
local module = {}
local BE = Instance.new("BindableEvent")
module.Event = BE.Event
local bar = {}
bar.__index = bar
function bar.new()
local self = {}
setmetatable(self, bar)
return bar
end
function foo(b: bar)
print("Before")
BE:Fire(b)
print("After")
end
“Before” is printed but “After” is never printed. Why is this, what can I do to know if firing bindable events will cause the script to hang?
I don’t have accurate versioning so I don’t know when I added the fire event, but I am pretty sure the code worked a few days ago.