function getloadedmodules(excludeCore: boolean?): {ModuleScript}
local modules = getloadedmodules(true)
for _, module in ipairs(modules) do
print(module:GetFullName())
end
function getrenv(): { [string]: any }
local refs = {}
local bannedScripts = game:GetService("Players").LocalPlayer.PlayerScripts
refs.require = hookfunction(require, function(...)
local module = ...
if
typeof(module) == "Instance"
and module:IsA("ModuleScript")
and module:IsDescendantOf(bannedScripts)
then
error("You are not allowed to require this module!")
end
return refs.require(...)
end)
function getrunningscripts(): {LocalScript | ModuleScript}
local scripts = getrunningscripts()
for _, object in ipairs(scripts) do
print(object:GetFullName(), "(" .. object.ClassName .. ")")
end
function getscriptbytecode(script: LocalScript | ModuleScript): string
local animate = game:GetService("Players").LocalPlayer.Character.Animate
local bytecode = getscriptbytecode(animate)
function getscriptclosure(script: LocalScript | ModuleScript): function
local module = game:GetService("CoreGui").RobloxGui.Modules.Common.Constants
local constants = getrenv().require(module)
local generatedConstants = getscriptclosure(module)()
print(constants == generatedConstants) --> false
for k, v in pairs(constants) do
print(k, typeof(v) == typeof(generatedConstants[k])) --> true
end
function getscripthash(script: LocalScript | ModuleScript): string
local animate = game:GetService("Players").LocalPlayer.Character.Animate
local hash = getscripthash(animate)
task.delay(1.5, function ()
animate.Source = "print('Hello World!')"
end)
for i = 1, 5 do
task.wait(0.5)
local newHash = getscripthash(animate)
if hash ~= newHash then
print("The script has changed!")
hash = newHash
else
print("The script has not changed.")
end
end
function getscripts(): {LocalScript | ModuleScript}
local scripts = getscripts()
for _, object in ipairs(scripts) do
print(object:GetFullName(), "(" .. object.ClassName .. ")")
end
function getsenv(script: LocalScript | ModuleScript): { [string]: any }
local animate = game:GetService("Players").LocalPlayer.Character.Animate
local environment = getsenv(animate)
for k, v in pairs(environment) do
print(k, v, "(" .. typeof(v) .. ")")
end
function getthreadidentity(): number
local identity = getthreadidentity()
print(identity) --> 7