I’m not sure if i’m the only one Experiencing this Issue, but every time i try to Require Module script it Sends me this Error:
"MyFunctions is not a valid member of ModuleScript “Workspace.ModuleScript” "
I’ve looked everywhere i couldn’t find the issue, i Even Copied The Script From Dev Hub About Module Scripts and yet it doesn’t work.
Module:
-- Tables store multiple values in one variable
local MyFunctions = {}
-- Add a few functions to the table
function MyFunctions.foo()
print("Foo!")
end
function MyFunctions.bar()
print("Bar!")
end
-- ModuleScripts must return exactly one value
return MyFunctions
Server Script:
-- The require function is provided a ModuleScript, then runs
-- the code, waiting until it returns a singular value.
local MyFunctions = require(script.Parent.MyFunctions)
-- These are some dummy functions defined in another code sample
MyFunctions.foo()
MyFunctions.bar()
I don’t Even know what to do at this point, i Tried Changing Module’s And Script’s Parent, And a lot of other stuff
I can’t even create new games in Studio. I was gonna work on some stuff but couldn’t due to long loading times and things simply not working (e.g. things not loading in studio and experiences).
my wifi is okay im around 70 ms which is totally fine but once i join it takes long time to load which is weird and when i open rostud mesh failed to load
It looks like you’re trying to get a a ModuleScript inside of another ModuleScript? - Maybe put your module inside an Instance that you can access easily? (I might be rusty here, sorry.)
Maybe try something like this?
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MyFunctions = require(ReplicatedStorage:WaitForChild("MyFunctions"))
edit:
i’m also getting this. The load times are terrible. Waiting for someone to post a bug report on it or for roblox to notice it lol.
From what i can tell it looks like its affecting countries like Australia, New Zealand, Philippines, etcc.
It looks like you’re trying to get a a ModuleScript inside of another ModuleScript? - Maybe put your module inside an Instance that you can access easily? (I might be rusty here, sorry.)
I’ve Stated that i’m using a server Script to Require Module:
Server Script:
-- The require function is provided a ModuleScript, then runs
-- the code, waiting until it returns a singular value.
local MyFunctions = require(script.Parent.MyFunctions)
-- These are some dummy functions defined in another code sample
MyFunctions.foo()
MyFunctions.bar()