MainModule - Styxling/Feather GitHub Wiki

Calling The Repository

local Directory = require(ServerStorage.Directory.MainModule)
			
Directory(ModuleName : string) 
	-- Returns the first module named the ModuleName within the top level folder or an immediate subfolder. Can return non-ModuleScript objects
	-- (Slowest way to get a module; Directory has to use recursion on itself to find the desired object)
			
Directory("_top") 
	-- Returns the top level folder.
			
Directory("_top", ModuleName : string) 
	-- Returns an object named the ModuleName within the top level folder, if such an object exists. Can return non-ModuleScript objects
			
Directory(_folderName : string) 
	-- Returns the subfolder whose name matches _folderName. If a folder is named "Replicated", you would pass "_replicated" to the directory
			
Directory(_folderName : string, ModuleName : string)
	-- Returns an object whose name matches the ModuleName argument within the provided subfolder, if such an object exists. Can return non-ModuleScript objects
	-- (Fastest way to get a module; Directory need only use :FindFirstChild("ModuleName") on the subfolder

Children

Assets

Data

Functions

Gamemode

MapMechanics

Mechanics

Replicated

Services

Parent

Directory