Basic Admin 2.0 Custom Module Not Loading

I am attempting to create a custom module with redone UIs for Basic Admin 2.0, however, the module is not loading properly when I attempt to require it. There are two errors that I’m getting.

01:20:00.084 - ModuleScript.Components.Other.Resize:10: attempt to call a nil value

01:20:00.085 - Stack Begin

01:20:00.088 - Script ‘ModuleScript.Components.Other.Resize’, Line 10

01:20:00.089 - Stack End

01:20:00.090 - Requested module experienced an error while loading

01:20:00.091 - Stack Begin

01:20:00.092 - Script ‘ReplicatedStorage.MainModule’, Line 159 - function startModule

01:20:00.093 - Script ‘ServerScriptService.Basic Admin Essentials 2.0’, Line 305

01:20:00.094 - Stack End

Basic Admin’s loader script (the one with the configuration) original had it require the ID of the original module from the configuration, but I changed it to this line:

require(game.ReplicatedStorage:WaitForChild("MainModule"))(Plugins,Configuration)

Does anyone who has possibly worked with BA know the solution to this? If so, please let me know.

1 Like

The Basic Admin Essentials loader and module should be stored in ServerScriptService, not ReplicatedStorage.

When you’re seeking to use the module for custom command and UI editing, you need to do the following: (assuming you’ve inserted the module and loader)

Assuming both the loader and MainModule are in ServerScriptService, replace the variable called LoaderID with this:

    ['Loader ID'] = game:GetService('SeverScriptService'):WaitForChild('MainModule')

If this doesn’t work, please get back to me.

3 Likes