Script Error since my life is not good

Ignore the title, my brother writen it while I was gone

Hey developers! At first, the text changed, but after a while, it’s unfortunately stopped working, so I could not release my admin panel. :frowning: Please help! Script below, the output have nothing.

script picture, click to open

Can you show me the picture the PlaceInfo function you wrote in the module script? It might be a problem with that code.

1 Like

You can take a look at the function right here. (wrong picture, I think you mean the whole script, it’s here for the whole)

Try changing line 3 to this:

local setup = require(game.ReplicatedStorage[Mithic_Modules].Settings)

[Mithic_Modules] is in red. So, I don’t think it’s will work.

That won’t do anything, also @achdef can you send a screenshot of MainVariables?

Try adding quotations like this, [“Mithic_Modules”]

Yeah, for sure. Here is the MainVariables script, just variables in there. Screenshot by Lightshot

Sometimes the module script doesn’t load when you just call it, so I would try doing it with WaitForChild

local setup = require(game.ReplicatedStorage:WaitForChild("Mithic_Modules").Settings)

But do that code all on one line because when I pasted it on here it went onto two lines.

Yes I think I see why. You require the settings module within MainVariables, but you also require MainVariables inside of Settings. This causes an infinite loop which makes the modules not load.

How would I fix this? Were do I remove the require?

It seems like you don’t need either of them, so remove them from both modules - MainVariables and Settings

No, since in PlaceInformation I get in the settings the text with require(), if I remove both…

You can have one but not both, or else it will stall

I can just require it in one script. Oh my god. Let me see, should print it’s changed if it’s really did.

Thanks you!! Life saver. Thanks you so much!!