Hello. I’m currently working on an open-source script pack. I need feedback for my layout and code, thanks!
(main folder in workspace)
MainScript:
local Settings = require(game.Workspace["ScriptPackx"].Configuration) -- This grabs our module script named 'Configuration'.
local mainFolder = game.Workspace["ScriptPackx"] -- This grabs the main folder this script is in.
---------------------------------------------------------------------------------
-- // MAIN SCRIPT -- //
-- This checks if you have Afterimages enabled in your settings. If it's true, then it will run.
if Settings.Afterimages == true then
print("Afterimages have been enabled.") -- This will print in the output if you enabled Afterimages.
mainFolder.Afterimages["GenerationClient"].Parent = game.StarterPlayer.StarterCharacterScripts
end
Tutorial:
--[[
Hello, thank you for using my open-source project!
-- 1. Disabling And Enabling Scripts --
To enable or disable one of the scripts I provided, go to 'Configuration' under the ScriptPackx folder.
Following that, you will see a list of all the scripts and 'false' next to all of them.
To enable a script, change the 'false' to 'true'. To disable a script, change the 'true' to 'false'.
-- 2. Adding Your Own Scripts To Edit This Pack --
If you are adding your own scripts to edit this pack and publish it for other players to use, please
keep it free to use. Ask for credit first before doing such things too.
First, bring a folder named whatever you'd like. Let's just say 'ScriptFolder' that contains the script you wanna add into the ScriptPackx folder.
After this, go to the 'Configuration' ModuleScript under ScriptPackx and below the last script, add:
'script = true' Replace the 'script' with the name of your name for the script. Please make sure this matches
the variable or real name of the script!
Now, go to the MainScript under ScriptPackx and write this under the last if statement:
Please also make sure you change 'script' to a valid name for the script.
if Settings.script == true then
mainFolder.ScriptFolder["scriptName"].Parent = (path for the kind of script you're using)
end
Have any problems with this pack? Contact me on the DevForum. @JellyM015
Configuration:
local Settings = { -- This is our Settings table. This will have all of the options for the pack to be enabled.
-- // SCRIPT ENABLER SETTINGS // --
--[[ Afterimages is a base overview of what this pack does script-wise. It's a great way to test out the pack
before you enable anything.
--]]
Afterimages = true -- Do you want afterimages to be enabled? (true, yes | false, no)
}
return Settings
Afterimages is just an example for this. I won’t include this in the final version, instead this will be an actually useful script pack for your games.
