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