Can I call a module script from a local script in StarterPlayerScripts folder?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to add visual effect and sound effect around a player whenever the player gets the game currency.

  2. What is the issue? Include screenshots / videos if possible!

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have researched on DevForum , YouTube and internet for several days.

Hello fellow developers!
I am a novice developer but have created several games for 6 months
including following games:
Math Obby and Playgrounds
Fraction’s Pizza Obby

Now I am developing an ESL obby game in which players can learn English grammar
and want to display a small heart and “+1” above a player whenever he/she touched on the correct answer board and give him/her a game currency (small heart).

To achieve this, I wrote a local script in StarterPlayerScripts folder as above picture.
But I have got an error message:
"QA_Manager is not a valid member of ServerStorage “ServerStorage” ".

QA_Manager is a module script in ServerStorage and accommodates questions and answers.
I can call it from other local scripts attached to white question and answer boards.

Firstly I want to know whether I can call a module script from a local script in StarterPlayerScripts.
Secondly, I want to know whether there are any alternatives if not.

Thank you in advance!

You can call ModuleScripts from StarterPlayerScripts folder but the reason your code errors is that contents of the ServerStorage doesn’t replicate to client so QA_Manager doesn’t exist on client. You can fix this by moving the QA_Manager modulescript to someone that LocalScripts have access to, like ReplicatedStorage for example.

1 Like

Thanks to you, the error is not shown anymore.
Thank you for your help.

But the program still doesn’t work.
Maybe I had better make another topic for that.

Hi I have done for a table that needs access from a local script but when i print out from a serverscipt service it shows the table with all the contents, but if I print from the local scipt it prints an empty table, any thoughts?