Back to Scripts
Require tester
ScriptBlox
Universal
Free
Game: Universal Script 📌
59
Views
0
Likes
0
Dislikes
Joyful_PizzaPartyl
offline
Features
Basically warns you what is accessible in require and is not.
Script Code
-- LocalScript only
local ServicesToScan = {
game:GetService("ReplicatedStorage"),
game:GetService("ReplicatedFirst"),
game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"),
game:GetService("Players").LocalPlayer:WaitForChild("PlayerScripts"),
game:GetService("Players").LocalPlayer:WaitForChild("Backpack"),
}
local results = {}
local function tryRequire(module)
local ok, result = pcall(function()
return require(module)
end)
results[module:GetFullName()] = {
Success = ok,
ResultType = ok and typeof(result) or nil,
Error = ok and nil or tostring(result)
}
if ok then
warn("can be Require:", module:GetFullName(), "->", typeof(result))
else
warn("no Require:", module:GetFullName(), "->", result)
end
end
for _, root in ipairs(ServicesToScan) do
for _, obj in ipairs(root:GetDescendants()) do
if obj:IsA("ModuleScript") then
tryRequire(obj)
task.wait() -- prevents freeze
end
end
end
print("result bro what do you expact")
print(results)
Comments (0)
Please login to comment
Login with Discord
Loading comments...