Maximum event re-entrancy depth exceeded for BindableEvent.Event

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to figure out why I keep getting this error.

  2. What is the issue? Include screenshots / videos if possible!
    Whenever an event is fired to an BindableEvent I have, it throws this error in the console:
    Maximum event re-entrancy depth exceeded for BindableEvent.Event

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’m unsure of how to resolve this error.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

The part of my code that fires the event:

prompt.Triggered:Connect(function(playerWhoTriggered)
		Network:Fire({
			VehicleDetected = true,
			VehicleSeat = nil,
			Driver = playerWhoTriggered,
		})
	end)

Another script was firing events recursively because the if condition was scripted wrongly. The issue is resolved. :slight_smile:

If you’re looking for the cause of this error, it’s caused if you did something like this:
(The script would keep firing events and it’ll throw the error)

BindableEvent.Event:Connect(function()
	BindableEvent:Fire()
end)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.