
Universal Script – Auto avoid a moderator for safety
-- CONFIGURATION
local Settings = {
LeaveOnCreator = true, -- Auto-leave if the game creator joins the server
LeaveOnRobloxAdmin = true, -- Auto-leave if an official Roblox staff member joins
-- Custom lists (Add specific usernames or IDs you want to avoid)
TargetUsernames = {"nameofmod", "GameOwnerFriend"},
TargetUserIds = {1234567, 8901234},
-- Group checking (Optional: kicks you if someone with a high rank in the game's main group joins)
CheckGroupRole = true,
GroupId = game.CreatorId, -- Automatically defaults to the game creator's ID/Group if applicable
MinRankToKick = 200 -- Usually, 200+ are mods/admins in development groups
}
-- SERVICES
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
-- LOG FUNCTION
local function debugLog(message)
print("[Anti-Mod]: " .. message)
end
-- DETECTION FUNCTION
local function checkPlayer(player)
if player == LocalPlayer then return end
-- 1. Check if Creator
if Settings.LeaveOnCreator and player.UserId == game.CreatorId then
LocalPlayer:Kick("⚠️ Detected Game Creator: " .. player.Name)
return
end
-- 2. Check if Official Roblox Admin/Staff
if Settings.LeaveOnRobloxAdmin and player:IsInGroup(1200769) then -- 1200769 is the official Roblox Admin group ID
LocalPlayer:Kick("⚠️ Detected Official Roblox Staff/Admin: " .. player.Name)
return
end
-- 3. Check Username Custom List
for _, name in ipairs(Settings.TargetUsernames) do
if player.Name:lower() == name:lower() then
LocalPlayer:Kick("⚠️ Detected Blacklisted Username: " .. player.Name)
return
end
end
-- 4. Check UserID Custom List
for _, id in ipairs(Settings.TargetUserIds) do
if player.UserId == id then
LocalPlayer:Kick("⚠️ Detected Blacklisted UserID: " .. player.Name)
return
end
end
-- 5. Check Group Rank (if the game is owned by a group)
if Settings.CheckGroupRole and game.CreatorType == Enum.CreatorType.Group then
pcall(function()
if player:GetRankInGroup(game.CreatorId) >= Settings.MinRankToKick then
LocalPlayer:Kick("⚠️ Detected Game Group Moderator/Admin: " .. player.Name)
end
end)
end
end
-- SCAN EXISTING PLAYERS
debugLog("Scanning current server players...")
for _, player in ipairs(Players:GetPlayers()) do
checkPlayer(player)
end
-- LISTEN FOR NEW PLAYERS JOINING
Players.PlayerAdded:Connect(function(player)
debugLog("Player joined: " .. player.Name .. " | Scanning...")
checkPlayer(player)
end)
debugLog("Anti-Mod Script Successfully Loaded.")How to Execute Universal Script – Auto avoid a moderator for safety
Step 1: Copy Code: Click the Copy Code button in the viewer above to grab the clean Lua loadstring.
Step 2: Launch Executor: Open a compatible, unpatched executor. If you need one, check our Roblox Executors Directory.
Step 3: Join Experience: Launch Roblox and join Universal Script.
Step 4: Attach & Run: Attach/inject your executor into the Roblox process, paste the code into the script tab, and press Execute.
Created By
View Author ProfileFeatures & Information
Script Changelog (1)
Community Comments (0)
No comments yet for this script.
Frequently Asked Questions
How do I execute Universal Script – Auto avoid a moderator for safety in Roblox?
To run Universal Script – Auto avoid a moderator for safety, copy the Lua loadstring from the code viewer above, launch Roblox and join Universal Script, attach a working executor (such as Potassium, Solara, or Delta from our Executors directory), paste the code into your executor console, and click Execute.
Is Universal Script – Auto avoid a moderator for safety keyless or does it require an access key?
Universal Script – Auto avoid a moderator for safety requires an access key. You can retrieve the official key directly using the Get Script Key link provided above.
Is Universal Script – Auto avoid a moderator for safety currently safe and working?
This script is active and operational. Always test scripts using a secondary (alt) Roblox account to safeguard your main profile against anti-cheat bans.


![Ez Hub [Open Source] [150+ games] - Verified script for Universal Script](https://media.kocakz.me/b74a9ac15370ba766b2fa9531f17c9dad2c0befb2b951693ae723e4c7d2c3fb6.webp)

![[KEYLESS] Moondiety Script | 20+ supported Games - Verified script for Universal Script](https://media.kocakz.me/6834c33a36c9fbe66afae4c6754c2b80386ce636b2f972464a95866f4b6a42eb.webp)

