Module experienced error while loading?

Hello everyone!

There is a weird issue going on in my game.

This is a line inside of a module script in Replicated Storage:

local manager = require(serverScriptService.PlayerData.Manager)

That line is giving me this error:
PlayerData is not a valid member of ServerScriptService “ServerScriptService” - Client - MainModules:6

The PlayerData folder along with the Manager module script are in the correct places!

image

Please help.

Thank you

1 Like

From your error, it seems that you are running the script in the Client. The issue is that the Client does not have access to the ServerScriptService, and can’t see any of the items inside of it.

Your script prolly has an error (the module script one)

Thank you for your responses!

To answer @YAYAYGPPR, this module script is inside of a folder named Modules, which is in Replicated Storage

To answer @lV0rd, there are no errors in the module script.

image

No, module experienced error while loading means that it found a bug inside itself, its self explanatory dawg

Yeah,

The error is this:
PlayerData is not a valid member of ServerScriptService “ServerScriptService” - Client - MainModules:6

This is seen in my first post above.

I understand, but based on your error, you required the ModuleScript from the Client, but the Client cannot access the ServerScriptService, so that’s why you’re getting an error.

Ok yeah I think it is because of that @YAYAYGPPR. Thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.