Universal Script 📌
671 Views
713 Executions

Blacklist System

Universal Script 📌
RealGood_050
RealGood_050100K executions
3 months ago

Reviewed by QueueSherlockPaid 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

Can kick anyone it blacklists.

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



Comments

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

More universal scripts

See all
Universal Script 📌
70.7k
7.6k
Bumped 3 minutes ago
Key System
Script hub
5.6M
1.2M
Bumped 50 minutes ago
Key System
Script hub
199.0k
2.2M
Bumped 3 hours ago
Key System

Script hub

#23 this week

Verified script badgeAirflow HUB

Script hub
22.4k
4.5k
Bumped 6 hours ago
Key System
Paid
High Quality Offering
Script hub
3.6M
883.6k
Bumped 7 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeFlow Hub | 73 Games | Updated

Script hub
13.5k
25.6k
Bumped 9 hours ago
Script hub
218
487
Approved 9 hours ago
Script hub
2.0M
2.4M
Bumped 9 hours ago
Key System