From e7e63b606f55306e9f7def2c75446ea4f13bd6d3 Mon Sep 17 00:00:00 2001 From: S-PScripts Date: Fri, 11 Oct 2024 19:37:32 +0100 Subject: [PATCH] bug fix --- Luau/KAH/Main Scripts/KohlsLite.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Luau/KAH/Main Scripts/KohlsLite.lua b/Luau/KAH/Main Scripts/KohlsLite.lua index efaff0d..8e71a4d 100644 --- a/Luau/KAH/Main Scripts/KohlsLite.lua +++ b/Luau/KAH/Main Scripts/KohlsLite.lua @@ -1533,7 +1533,7 @@ game.Players.LocalPlayer.Chatted:Connect(function(msg) local dasplayer = args[2] PLAYERCHECK(dasplayer) if player ~= nil then - if table.find(blacklist, player) then + if table.find(blacklist, player) or table.find(newplrslocked, player) then if blwl_an then if watermark_kl then Chat("h \n\n\n [KohlsLite]: "..player.." has been unblacklisted! \n\n\n") @@ -1541,14 +1541,16 @@ game.Players.LocalPlayer.Chatted:Connect(function(msg) Chat("h \n\n\n "..player.." has been unblacklisted! \n\n\n") end end - table.remove(blacklist, table.find(blacklist, player)) + if table.find(blacklist, player) then + table.remove(blacklist, table.find(blacklist, player)) + end if table.find(newplrslocked, player) then - table.remove(newplrslocked, table.find(newplrslocked, player)) + table.remove(newplrslocked, table.find(newplrslocked, player)) end Remind("Unblacklisted "..player) Chat('unblind '..player) Chat('unpunish '..player) - else + else Remind(player.." was never blacklisted!") end