Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I use require in a server script for when I have a module script created and a model?

I've created a script and tried to get it to load on the the server, but doesn't work in solo, or in game. (From Error Output) The error I've gotten is:

11:27:10.424 - An error occurred
11:27:10.425 - Requested module experienced an error while loading
11:27:10.425 - Script 'Workspace.AxoSec | Loader', Line 1

Main Module:

local module = {}
	game.Workspace.FilteringEnabled = true
	
	local Gui = script.ScreenGui:Clone()
	Gui.Parent=game.StarterGui
	
	print("AxoSec Loaded")
return module

What is one way to make sure that the script will load from the require? NOTE - The module script is already named 'MainModule'.

1 comment

0

Simply posting the error does not help us either. Can you give us a general idea how the module is set up, what the "Loader" script looks like, etc.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.