Fetching code via require(ID) doesn't work in Studio

When using the [color=blue]require[/color] () function via a model ID, it fails to function only in [color=cyan]Studio[/color]. It works just fine in-game. I’ve had strange errors talking about [color=red]attempting to index a thread value, attempting to index a function,[/color] and in the case of when your module has items inside of it that you may want to reference, [color=orange]it’ll infinitely yield[/color] if you’re trying to fetch it via WaitForChild().


Screenshots

bandicam%202019-10-31%2018-33-52-024
Unfortunately I couldn’t capture the thread error.


This seems to have happened via the latest update and each error seems to happen seemingly at random when running the same require(ID) multiple times, with very rare times where it will work despite not having changed anything.

This topic was automatically closed after 1 minute. New replies are no longer allowed.