
548 Views
66 Executions
Require tester
Universal Script 📌
Joyful_PizzaPartylPublished 50
9 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Basically warns you what is accessible in require and is not.
-- 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")
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







