diff --git a/README.md b/README.md index 4cbb79b1..6cb767d6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Script ```lua -local owner = "Upbolt" +local owner = "rodrigo-artificial" local branch = "revision" local function webImport(file) diff --git a/init.lua b/init.lua index 3e319356..a608aefc 100644 --- a/init.lua +++ b/init.lua @@ -5,7 +5,7 @@ if oh then end local web = true -local user = "Upbolt" -- change if you're using a fork +local user = "rodrigo-artificial" -- change if you're using a fork local branch = "revision" local importCache = {} @@ -286,8 +286,12 @@ if readFile and writeFile then end useMethods(import("methods/string")) +print'methods/string imported' useMethods(import("methods/table")) +print'methods/table imported' useMethods(import("methods/userdata")) +print'methods/userdata imported' useMethods(import("methods/environment")) +print'methods/environment imported' ---import("ui/main") +import("ui/main") diff --git a/objects/ModuleScript.lua b/objects/ModuleScript.lua index 9cca856c..e600f78d 100644 --- a/objects/ModuleScript.lua +++ b/objects/ModuleScript.lua @@ -4,10 +4,17 @@ function ModuleScript.new(instance) local moduleScript = {} local closure = getScriptClosure(instance) + if closure then + print(`Closure from: {instance:GetFullName()} detected.`) + moduleScript.Constants = getConstants(closure) + moduleScript.Protos = getProtos(closure) + else + moduleScript.Constants = {} + moduleScript.Protos = {} + end + moduleScript.Instance = instance - moduleScript.Constants = getConstants(closure) - moduleScript.Protos = getProtos(closure) - --moduleScript.ReturnValue = require(instance) // causes detection + moduleScript.ReturnValue = require(instance) --// causes detection return moduleScript end diff --git a/ui/modules/ClosureSpy.lua b/ui/modules/ClosureSpy.lua index d2f3e7fb..bb79ff6f 100644 --- a/ui/modules/ClosureSpy.lua +++ b/ui/modules/ClosureSpy.lua @@ -270,9 +270,14 @@ function Log.new(hook) local blockAnimation = TweenService:Create(buttonName, constants.fadeLength, { TextColor3 = constants.blockedColor }) local ignoreAnimation = TweenService:Create(buttonName, constants.fadeLength, { TextColor3 = constants.ignoredColor }) + --[[ buttonInfo.Protos.Text = #getProtos(original) buttonInfo.Upvalues.Text = #getUpvalues(original) buttonInfo.Constants.Text = #getConstants(original) + ]] + buttonInfo.Protos.Text = 'ERROR' + buttonInfo.Upvalues.Text = 'ERROR' + buttonInfo.Constants.Text = 'ERROR' button.Name = closure.Name buttonName.Text = closure.Name