Universal Script 📌
539 Views
526 Executions

Auto avoid a moderator for safety

Universal Script 📌
skeletonsocrates5
skeletonsocrates510K executions
1 month ago

Reviewed by QueueSpeedDemonPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

You get kick if a moderator joined

View Raw
-- 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



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
48.4k
46.5k
Bumped 1 hour ago
Universal Script 📌
1.4k
1.3k
Bumped 4 hours ago
Universal Script 📌
4.2k
56.4k
Bumped 5 hours ago
Universal Script 📌
7.1k
71.4k
Bumped 5 hours ago
Script hub
3.5M
1.2M
Bumped 6 hours ago
Key System
Universal Script 📌
5.0k
92.0k
Bumped 11 hours ago