- What I want to achieve?
- I want add Pet Shop System like in AlvinBlox video
source: How To Make An EGG HATCHING SYSTEM - Roblox Studio Scripting Tutorial - YouTube - I don’t want it system in workspace but in GUI, so, I used localscript and added RemoteEvent.
- As far I follow steps and understanding I ended up with ModuleScript error.
- Issue
-
ModuleScript returns nil instead
Output:
First error: Returned nil
Second’s error don’t mind, it’s means it didn’t received from ModuleScript (as far I know) -
Problem in ModuleScript (with red dot that always show “nil”):
-
After searching many similar ModuleScript’s problems and haven’t found any answers to solve my problems.
- What I tried so far?
- Checked if I got required(~ModuleScript’s Place~) - There is!
- Checked if any missed sample in ModuleScript - All - function, tables and brackets - seems fine, no saying “error” anywhere.
- Other script has connection to ModuleScript
-
GUI’s imaginebutton, LocalScript (Gives Event):
-
ServerScriptService, Script (Get’s Event):
(Functions and events are pretty fine, checked with print() help before ModuleScript)
(Output’s second error is 5. line) -
Am I missing something?
Sincerely,
NoxSorce.