Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local function findAndBypassKick()
- local coreGui = game:GetService("CoreGui")
- local kickScreen = nil
- -- Iterate through all children of CoreGui to find a screen with "Kick" or "Ban" in its name
- for _, child in ipairs(coreGui:GetChildren()) do
- if child:IsA("ScreenGui") and child.Name:lower():match("kick") or child.Name:lower():match("ban") then
- kickScreen = child
- break
- end
- if child:IsA("ScreenGui") then
- for _, descendant in ipairs(child:GetDescendants()) do
- if descendant:IsA("TextLabel") or descendant:IsA("TextBox") or descendant:IsA("TextButton") then
- if descendant.Text:lower():match("kick") or descendant.Text:lower():match("ban") then
- kickScreen = child
- break
- end
- end
- if kickScreen then
- break
- end
- end
- end
- if kickScreen then
- break
- end
- end
- if kickScreen then
- kickScreen:Destroy()
- if player.Character then
- player.Character:Destroy()
- end
- player:LoadCharacter()
- player.PlayerGui.Disabled = false
- player.PlayerScripts.Disabled = false
- local placeId = game.PlaceId
- game:GetService("TeleportService"):Teleport(placeId, player)
- print("Attempted to bypass kick/ban.")
- end
- end
- -- Check periodically and on child added
- while true do
- findAndBypassKick()
- wait(1)
- end
- game:GetService("CoreGui").ChildAdded:Connect(function(child)
- findAndBypassKick()
- end)
Advertisement
Add Comment
Please, Sign In to add comment