
539 Views
526 Executions
Auto avoid a moderator for safety
Universal Script 📌
1 month ago
Reviewed by QueueSpeedDemonPaid revieweron How review works
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
You get kick if a moderator joined
-- 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
0Log in to join the conversation. Login
No comments yet. Be the first!







