Can't detect ModuleScript from Variable

So I want to detect ModuleScript using variables and require in my LocalScript, but an error Infinite yield something in my Output when I try to test the game.

The question is, can I require ModuleScript via LocalScript? This is my variable code:

local module = require(game.ServerScriptService:WaitForChild("ModuleFolder"):WaitForChild("Params"))

You can not access ServerScriptService / ServerStorage from the client. I recommend moving your modules to ReplicatedStorage if you plan to use them from the client.

Gosh, I didn’t know that, thanks a lot!

1 Like