Universal Script 📌
662 Views
693 Executions

Blacklist System

Universal Script 📌
RealGood_050
RealGood_05010K executions
2 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
Script hub
18
1
2 hours ago
Key System

Script hub

NEW Script Hub

Script hub
227
237
17 hours ago
Universal Script 📌
19.3k
178.7k
Bumped 44 minutes ago
Key System
Script hub
72
5
2 hours ago
Key System
Script hub
272.3k
143.3k
Bumped 58 minutes ago
Key System
Script hub
182.2k
1.8M
Bumped 2 hours ago
Key System

Script hub

#18 this week

Verified script badgeAirflow HUB

Script hub
71.3k
235.0k
Bumped 2 hours ago
Key System