Add executor-tester.lua
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
local exec_name = identifyexecutor() or getexecutorname() or "Executor"
|
||||
|
||||
local UNC = {
|
||||
"setfflag",
|
||||
"mousemoverel",
|
||||
"getrenv",
|
||||
"hookmetamethod",
|
||||
"newcclosure",
|
||||
"getnamecallmethod",
|
||||
"gethui",
|
||||
"loadstring",
|
||||
}
|
||||
|
||||
local missing = {}
|
||||
for _, name in ipairs(UNC) do
|
||||
if type(_G[name]) ~= "function" then
|
||||
missing[#missing + 1] = name
|
||||
end
|
||||
end
|
||||
|
||||
if type(debug.getupvalue) ~= "function" then
|
||||
missing[#missing + 1] = "debug.getupvalue"
|
||||
end
|
||||
|
||||
if #missing > 0 then
|
||||
game:GetService("Players").LocalPlayer:Kick(exec_name .. " is missing: " .. table.concat(missing, ", "))
|
||||
else
|
||||
game:GetService("Players").LocalPlayer:Kick(exec_name .. " supports mirrorhack")
|
||||
end
|
||||
Reference in New Issue
Block a user