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!
Please help.
Thank you
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.
lV0rd
(Tin)
July 2, 2023, 6:33pm
3
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.
lV0rd
(Tin)
July 2, 2023, 6:35pm
5
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.
system
(system)
Closed
July 16, 2023, 6:39pm
9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.