In practice, the BindableEvent doesn’t fire about half the time. Adding a wait before running the above line of code resolves the issue, but I’m not satisfied with that solution. Does anyone know why this code is breaking, and what it is that the script needs to wait for?
check to see if that print at the beginning fires first before anything below it.
local function event()
warn(1)
end
be.Event:Connect(event)
if it fires at different times, then your issue might be within that function or before it, otherwise i couldn’t really tell you what it exactly is since information is vague.
I figured the problem out. The problem is that the BindableEvent is firing before a different script can connect a function to it. However, I don’t really know how to fix that aside from just adding a wait. Anyone know how to fix that?