Managing Scripts
Most sources are from the Discord documentation.
Libraries by cparke and Equsjd
These are all the functions for managing scripts.
Creating Scripts
To create a script, use:
from SecLoad import ScriptType, SecLoad
secload = SecLoad("Insert API Key here")
secload.CreateScript("scriptname", "source of the script (made for Roblox so its a lua script)", ScriptType.TEXT)
Removing Scripts
To remove a certain script name, do:
from SecLoad import ScriptType, SecLoad
secload.RemoveScript("scriptname")
Overwriting Scripts
To overwrite a certain script, do:
from SecLoad import ScriptType, SecLoad
secload = SecLoad("Insert API Key here")
secload.OverwriteScript("scriptname", "new source here", ScriptType)
View Script Source
To view a script source, do:
from SecLoad import ScriptType, SecLoad
secload = SecLoad("Insert API Key here")
secload.GetScriptSource("scriptname")
Listing Scripts
This will list every script the API key has generated, returning a Python array.
from SecLoad import ScriptType, SecLoad
secload = SecLoad("Insert API Key here")
secload.ListScripts()
Generating Script Keys
To generate script keys, use this:
from SecLoad import ScriptType, SecLoad
secload = SecLoad("Insert API Key here")
secload.GenerateKey("scriptname", "robloxuser (REQUIRED)", "expire time") # -> returns the script EXAMPLE: require(idhere)("key", "key2", "username", true)
Example:
require(2981)("key", "key2", "username", true)
Using Files
To use files, change the ScriptType to FILE
Example
from SecLoad import ScriptType, SecLoad
secload = SecLoad("Insert API Key here")
secload.CreateScript("scriptname", "path/to/file", ScriptType.FILE)