When I try to require a ModuleScript from a folder in ServerScriptService, it gives me the following error: Modules is not a valid member of ServerScriptService
"Modules" is the name of the folder and i'm trying to access it using the following code in a local script in StarterGui:
local eai = require(game.ServerScriptService.Modules.Classes.Enemy.EnemyAi)
Please forgive me if this is a very simple solution, it has been a very long time since i last programmed on ROBLOX and I have forgotten quite an amount of stuff
Thanks

5 comments
Is this in a local script? If so local scripts cant index the ServerScriptService. Anything inside of ServerStorage and ServerScriptService are accessible from server scripts only
he even said it
Is there any way I can access it using a local script?
read answer
no there is not godly, you have to move it somewhere that a local script can access