local Players = game:GetService("Players") local lp = Players.LocalPlayer local results = {} local passCount = 0 local total = 0 local function check(name, fn) local ok, err = pcall(fn) results[name] = ok and "PASS" or ("FAIL: " .. tostring(err)) total += 1 if ok then passCount += 1 end end check("namecall_clean", function() local mt = getrawmetatable(game) local nm = mt.__namecall assert(debug.info(nm, "s") == "[C]") assert(debug.info(nm, "l") == -1) assert(debug.info(nm, "n") == "") assert(debug.info(nm, "a") == 0) end) check("index_clean", function() local mt = getrawmetatable(game) local idx = mt.__index assert(debug.info(idx, "s") == "[C]") assert(debug.info(idx, "l") == -1) assert(debug.info(idx, "n") == "") assert(debug.info(idx, "a") == 0) end) check("newindex_clean", function() local mt = getrawmetatable(game) local ni = mt.__newindex assert(debug.info(ni, "s") == "[C]") assert(debug.info(ni, "l") == -1) assert(debug.info(ni, "n") == "") assert(debug.info(ni, "a") == 0) end) check("enum_index_clean", function() local mt = getrawmetatable(Enum) local idx = mt.__index assert(debug.info(idx, "s") == "[C]") assert(debug.info(idx, "l") == -1) end) check("fireserver_errors", function() local re = Instance.new("RemoteEvent") local ws = game:GetService("Workspace") local ok1, e1 = pcall(function() re:fireserver() end) assert(not ok1 and string.match(e1, "is not a valid member of RemoteEvent"), e1) local ok2, e2 = pcall(function() re.FireServer(ws) end) assert(not ok2 and e2 == "Expected ':' not '.' calling member function FireServer", e2) local ok3, e3 = pcall(function() ws:FireServer() end) assert(not ok3 and string.match(e3, "FireServer is not a valid member of Workspace"), e3) re:Destroy() end) check("invokeserver_errors", function() local rf = Instance.new("RemoteFunction") local ws = game:GetService("Workspace") local ok1, e1 = pcall(function() rf:invokeserver() end) assert(not ok1 and string.match(e1, "is not a valid member of RemoteFunction"), e1) local ok2, e2 = pcall(function() rf.InvokeServer(ws) end) assert(not ok2 and e2 == "Expected ':' not '.' calling member function InvokeServer", e2) local ok3, e3 = pcall(function() ws:InvokeServer() end) assert(not ok3 and string.match(e3, "InvokeServer is not a valid member of Workspace"), e3) rf:Destroy() end) check("kick_errors", function() local ws = game:GetService("Workspace") local ok1, e1 = pcall(function() lp.Kick(ws, "test") end) assert(not ok1 and e1 == "Expected ':' not '.' calling member function Kick", e1) local ok2, e2 = pcall(function() ws:Kick("test") end) assert(not ok2 and string.match(e2, "Kick is not a valid member of Workspace"), e2) local ok3, e3 = pcall(function() lp:KicK("test") end) assert(not ok3 and string.match(e3, lp:GetFullName()), e3) end) check("kick_non_local_player", function() local players = Players:GetPlayers() if #players > 1 then for _, p in players do if p ~= lp then local ok1, e1 = pcall(function() lp.Kick(p, "test") end) assert(not ok1 and e1 == "Cannot kick a non-local Player from a LocalScript", e1) local ok2, e2 = pcall(function() p:Kick("test") end) assert(not ok2 and e2 == "Cannot kick a non-local Player from a LocalScript", e2) break end end end end) check("getloghistory_errors", function() local ls = game:GetService("LogService") local ws = game:GetService("Workspace") local ok1, e1 = pcall(function() ls:getlogHistory() end) assert(not ok1 and string.match(e1, "is not a valid member of LogService"), e1) local ok2, e2 = pcall(function() ls.GetLogHistory(ws) end) assert(not ok2 and e2 == "Expected ':' not '.' calling member function GetLogHistory", e2) local ok3, e3 = pcall(function() ws:GetLogHistory() end) assert(not ok3 and string.match(e3, "GetLogHistory is not a valid member of Workspace"), e3) end) check("getrealphysicsfps_errors", function() local ws = game:GetService("Workspace") local ok, e = pcall(function() ws.GetRealPhysicsFPS(game) end) assert(not ok and string.match(e, "Expected ':' not '.'"), e) end) check("eq_enum_sane", function() assert(Enum.HumanoidStateType.Running == Enum.HumanoidStateType.Running) end) local line = string.rep("─", 52) local status = passCount == total and "✓ SAFE" or string.format("⚠ %d CHECK(S) FAILING", total - passCount) if passCount < total then end