Yeah I didn't see anywhere you set the variable to true but with that event disabled it all works fine for some reason. Not really sure on what the deal is with that UI layout tbh but since the event is 'every tick' it has a change of going wrong without you noticing, to me it looks like it could get stuck in a loop going from UI back to the main layout, or it is going to the same layout continuously.