-- Получаем необходимые ссылки
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
-- Функция для проверки читов
local function checkCheats()
local success, error = pcall(function()
local che1tsGui = PlayerGui:WaitForChild("Che1ts")
local kickCheatGui = PlayerGui:WaitForChild("KickCheat")
if che1tsGui and che1tsGui:FindFirstChild("Frame") then
if che1tsGui.Frame.Visible then
che1tsGui.Enabled = false
kickCheatGui.Enabled = true
print("Logs: KickCheat.Enabled = true")
print("Logs: Che1ts.Enabled = false")
end
end
end)
if not success then
warn("Error in checkCheats:", error)
end
end
-- Безопасный цикл с возможностью остановки
local running = true
spawn(function()
while running do
checkCheats()
print("Kick Anti-Cheat work!")
wait(1)
end
end)
-- Очистка при удалении скрипта
script.Destroying:Connect(function()
running = false
end)