Can't access "StarterPlayerScripts" from a module inside "ReplicatedStorage" [fixed]

Hi, I need help with my framework, I’m making an FPS game, but that’s not really important considering my current predicament. To explain, I have a framework module, that is initialized, via LocalScript and a regular Script

Client:


Server:

It then generates the default variables:

Next is makes a function to get all modules within a provided instance:

It loads the adapted module titles:

Then it enables all scripts:


My issue is that from a LocalScript, located within “StarterPlayerScripts”:
image

It doesn’t ever loop through “StarterPlayerScripts”, as if it was never added to locationsToGetModules


If you have any idea as of to why this could be happening, please tell me why :slight_smile:

I’ve narrowed down the issue:

Turns out when i loop through the table of services, it doesn’t loop though them all
image

(the top table in the image is printed right before the loop, but the lower is print inside the loop)
image

So it’s not printing anything inside of the l:GetDescendants()?

image

=

image

I think it has something to do with the SetupModules function, ill look through it real quick

image


What you see printed is from ReplicatedStorage, im going to try and remove rps from the table

yup, removing rps fixed it, im going to try and make it the last on loaded, i think that will fix it

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