Require() issue

I don’t even know if this is a bug but recently, I have noticed that my script is yielding at require. All I have done was add a function to one of the modules. All of them are absolutely fine. I have even excluded every single require except for one, one by one and they all yielded the script. I have placed them in different places and once the script tried to require it yielded. I don’t understand why this happens. The first image is the script where the modules are required and the second image shows that it only prints the text before the require().

image

If this is a LocalScript keep in mind that you can’t access Server-Side things

Make sure you indexing properly, you may have not properly Declared the RobloxReplicatedStorage if anything, typos are very common, other than that i’m not 100% sure.

This isn’t even coming from your script, read the stack trace, this is coming from the CoreScript CoreScriptErrorReporter.lua, don’t worry about it:

image

Source:
image

3 Likes

I have realized it was because two module scripts were requiring each other creating an infinite loop causing everything to yield.