Multiple script timeouts

In my rather small game, with only 1 big script with a couple of modules (Which are serverside)
on the client i’ve ran into a problem. I made a loading screen, and in replicated first I added a very simple

Blockquote Wait()

When done it completely breaks the code, exhausting execution timeout, in my years of scripting i’ve never had this problem
This is clientside

game.ReplicatedFirst:RemoveDefaultLoadingScreen()
script.ScreenGui.LocalScript.Disabled = false
script.ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
wait() -- exhausts here.
script:Destroy()

What error pops up when you run this?

You’ll need to show more of the script for us to help you.

That is the only part of the script, it could be replication that breaks it, but i’ve never had problems like this before.

What? So you have server scripts and local scripts and module scripts? Are you sure this is the one causing the error? Show the full stack trace and error if you wouldn’t mind please.

I believe i’ve figured it out, due to roblox loading, a simple script causes it to break, as i end up getting a timed out even without a wait,
ServerScriptService should have nothing to do with it, as its just a server loader with a bunch of module scripts.

Though im also getting script timeouts in

Script ‘CoreGui.RobloxGui.CoreScripts/CoreScriptErrorReporter’, Line 100
and i also got

Maximum event re-entrancy depth exceeded for ScriptContext.ErrorDetailed
Im not firing any events at all yet.

I also should mention even coroutines are getting affected by this.

Sorry to necro, but im having this issue aswell. roblox studio freezing for the first couple seconds then tons of timeout errors:

(That’s just the top quarter)
image

Not sure what causes this as this is only the second time this has happened to me.

I can’t see those errors, the screenshot is far too small. Is this when you run the game or is this in Studio? If the latter, check your plugins. Uninstall them until the issue stops.

Yeah not seeing the errors was on purpose, I was trying to convey how many timeouts there were, it happens when I run. It’s stopped now