Require() stops module script from continuing

Hello! I’m currently working with module scripts. I have to require some other module scripts inside my main module script, but the whole module just stops when i require the other module scripts!

All the prints work when i’m not requiring the other modules. “Hello”, but “Hi!” isn’t printed.

I feel like this is a wierd thing that should work, but i could be wrong.

Can you send the other module scripts?

If they require your main module you’ll essentially have an infinite loop of the modules requiring each other. You generally can’t have two ModuleScripts require each other. There are a few hacky work arounds but it’d be better to avoid doing that in the first place.

2 Likes