Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago

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'.

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. M39a9am3R 3210 — 8y

1 answer

Log in to vote
0
Answered by
cjamoo 0
8 years ago

Because the numbers are in the wrong place

0
That's the error time. JamesLWalker 297 — 8y
Ad

Answer this question