Blacklist System
Key RequiredUniversal

Blacklist System

Universal ScriptRealGood_050RealGood_050 633 views 640 executesUpdated Sep 9, 2026
Unrated
00
Lua Script•45 lines (1137 chars)
local Players = game:GetService("Players")
local SoundService = game:GetService("SoundService")

local blacklist = {
    "RealLarp_050",
    "RealGood_050"
}

-- Create and play the sound globally (or locally depending on executor context)
local function playKickSound()
    local sound = Instance.new("Sound")
    sound.SoundId = "rbxassetid://90321528664115"
    sound.Volume = 1
    sound.Parent = SoundService
    sound:Play()
    
    -- Clean up the sound after it finishes playing
    task.delay(5, function()
        if sound then
            sound:Destroy()
        end
    end)
end

local function isBlacklisted(username)
    for _, blacklistedName in ipairs(blacklist) do
        if blacklistedName:lower() == username:lower() then
            return true
        end
    end
    return false
end

local function handlePlayer(player)
    if isBlacklisted(player.Name) then
        playKickSound()
        player:Kick("You are blacklisted, Please contact the owner of the script to whitelist")
    end
end

Players.PlayerAdded:Connect(handlePlayer)

for _, player in ipairs(Players:GetPlayers()) do
    handlePlayer(player)
end

Features & Information

Can kick anyone it blacklists.

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts