Error in Script

There seems to be an error on my script.


What can I do?

I have tried these solutions:
Changing the script a bit.
Re-naming some things
Delete some of the the script
And double check it all.

What does the error message say? I don’t actually see a ModuleScript in your screenshot named Player_Data. Did you name ModuleScript Player_Data?

I have just tried it and it sadly didn’t work. image

Add the modules folder into Replicated Storage.

Well that’s a different error altogether. It means that the module script has an error in it, but that fixes your initial problem. What do you have in the ModuleScript? Or is that even the same ModuleScript? That looks like a separate issue altogether.

Just add the Modules folder into replicated storage and use this code:

local Player_Data = require(game.ReplicatedStorage.Modules.PlayerData)

You cannot access SSS throught the client because its on the Server. ReplicatedStorage allows its contents to be used from client and server.

1 Like

Hm, still an error. I can send you the video link if you want?

Yes, do it.
696969699696
4-242-2u35523

where is the code being added, is it in a local script or a server script?

The error ‘requested module experienced an error while loading’ has nothing to do with an error in the module script, as a script needs to run before it can throw an error at you, and module scripts cant run before they are requested.

The error this guy is having has to do with where the module is stored in.

image

I mean, which script is requiring the moduleScript? Is it MainServer

ALso the module script needs to be named Player_Data

You are wrong. Requested module experienced an error while loading refers to an error in the ModuleScript. Hence the bit where the requested module experienced the error.
I just caused one for a screenshot.


OP has two issues, and I solved the first one, which is a directory issue that you are trying to fix. The second issue doesn’t seem to be related since he has no scripts in his current explorer view called ToolGripEditor. It might be a plugin or a script somewhere else. I need to see his module code to be sure why things aren’t working.

I think so, but since I have just started scripting I am not the best.

Bruh, just did some research on this topic and turns out i was wrong all along (no surprise there), Sorry lpl

1 Like

Do you have any suggestions on solutions?

Can you show us what the module script has in it?

image