--[[
SCRIPT COM UI PRÓPRIA - COM BOTÃO DE SUICÃDIO
Funcionalidades:
- Godmode toggle
- Autofarm toggle (com kill switch)
- Kick toggle
- Anti-spectator toggle
- Botão de SUICÃDIO (mata o próprio personagem)
--]]
-- ============================ SERVIÇOS ============================
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local LocalPlayer = Players.LocalPlayer
local CoreGui = game:GetService("CoreGui")
-- ============================ BIBLIOTECA DE NOTIFICAÇÕES (FE2Notifs EMBUTIDA) ============================
do
local lib = {}
local table1 = {}
local cloneref = cloneref or function(o) return o end
local coregui = CoreGui
local _SGUI = Instance.new('ScreenGui', coregui)
_SGUI.Name = 'FE2Notifs'
local TopFrame = Instance.new("Frame")
local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
TopFrame.Name = ";3"
TopFrame.Parent = _SGUI
TopFrame.BackgroundColor3 = Color3.new(1, 1, 1)
TopFrame.BackgroundTransparency = 1
TopFrame.Position = UDim2.new(0.371764719, 0, 0, 0)
TopFrame.Size = UDim2.new(0.255882353, 0, 0.0865671635, 0)
_SGUI.IgnoreGuiInset = false
_SGUI.ResetOnSpawn = false
UIAspectRatioConstraint.Parent = TopFrame
UIAspectRatioConstraint.AspectRatio = 8.039999961853027
function lib.handleAlert(p56, p57, p58, p59)
if p57.Parent == _SGUI[';3'] then
local v48 = (p56 > 4 or p58) and p56 or p56 - 1;
local v49 = (p56 > 4 or p58) and "In" or "Out";
if p56 > 4 or p58 then
p57.ZIndex = 0;
table.remove(table1, p56);
local TweenInfo_new_ret13 = TweenInfo.new(0.3, Enum.EasingStyle.Quint, Enum.EasingDirection.In);
cloneref(TweenService):Create(p57.Alert_Shadow, TweenInfo_new_ret13, {
ImageTransparency = 1
}):Play();
cloneref(TweenService):Create(p57.Alert, TweenInfo_new_ret13, {
TextTransparency = 1.1,
TextStrokeTransparency = 1
}):Play();
task.delay(0.3, function()
p57:Destroy();
end);
return;
end
p57:TweenPosition(UDim2.new(0.5, 0, v48, 0), v49, "Sine", 0.325, true);
end
end
function lib.alert(text, clr, tim, special)
task.spawn(function()
local _TIME = tim or 4.5;
local Frame = Instance.new("Frame");
local ImageLabel = Instance.new("ImageLabel");
local TextLabel = Instance.new("TextLabel");
Frame.Name = "Alert_Frame";
Frame.Size = UDim2.new(1, 0, 1, 0);
Frame.Position = UDim2.new(0.5, 0, -1, 0);
Frame.AnchorPoint = Vector2.new(0.5, 0);
Frame.BackgroundTransparency = 1;
local UIScale = Instance.new("UIScale");
UIScale.Scale = 0;
UIScale.Parent = Frame;
ImageLabel.Name = "Alert_Shadow";
ImageLabel.BackgroundTransparency = 1;
ImageLabel.Image = "rbxassetid://1057492965";
ImageLabel.ImageTransparency = 0.5;
ImageLabel.Size = UDim2.new(1, 0, 1, 0);
ImageLabel.Parent = Frame;
TextLabel.Name = "Alert";
TextLabel.ZIndex = 3;
TextLabel.Text = text;
TextLabel.TextColor3 = clr or Color3.new(1, 1, 1);
TextLabel.TextScaled = true;
TextLabel.Font = "Ubuntu";
TextLabel.TextStrokeTransparency = 0;
TextLabel.BackgroundTransparency = 1;
TextLabel.BackgroundColor3 = Color3.new();
TextLabel.BorderSizePixel = 0;
TextLabel.Size = UDim2.new(1, 0, 1, 0);
local UIGradient = Instance.new("UIGradient");
UIGradient.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255), Color3.fromRGB(159, 159, 159));
UIGradient.Rotation = 90;
UIGradient.Parent = TextLabel;
TextLabel.Parent = Frame;
Frame.Parent = _SGUI[';3'];
if _TIME > 8 then
local Frame2 = Instance.new("Frame", TextLabel);
Frame2.BorderSizePixel = 0;
Frame2.BackgroundColor3 = clr or Color3.new(1, 1, 1);
Frame2.AnchorPoint = Vector2.new(0.5, 0.5);
Frame2.Position = UDim2.new(0.5);
Frame2.Size = UDim2.new(1, 0, 0.1, 0);
Frame2:TweenSize(UDim2.new(0, 0, 0.1, 0), "Out", "Linear", _TIME);
local ImageLabel2 = Instance.new("ImageLabel", Frame2);
ImageLabel2.Image = "rbxassetid://156579757";
ImageLabel2.Size = UDim2.new(1, 0, 1, 0);
ImageLabel2.BackgroundTransparency = 1;
ImageLabel2.ImageTransparency = 0.5;
end
if special == "rainbow" then
task.spawn(function()
local v85 = 0;
while TextLabel and task.wait() do
if v85 > 1 then
v85 = 0;
end
TextLabel.TextColor3 = Color3.fromHSV(v85, 1, 1);
v85 = v85 + 1 / 120;
end
end);
end
local v55 = 1;
table.insert(table1, v55, Frame);
for index6 = 1, #table1 do
lib.handleAlert(index6, table1[index6]);
end
local TweenInfo_new_ret14 = TweenInfo.new(0.325, Enum.EasingStyle.Quint, Enum.EasingDirection.Out);
cloneref(TweenService):Create(Frame.UIScale, TweenInfo_new_ret14, {
Scale = 1
}):Play();
cloneref(TweenService):Create(TextLabel, TweenInfo_new_ret14, {
TextTransparency = 0,
TextStrokeTransparency = 0.1
}):Play();
task.wait(_TIME)
if Frame and TextLabel and TextLabel.TextTransparency <= 0 then
local v78 = 1;
for index10 = 1, #table1 do
if table1[index10] == Frame then
v78 = index10;
break;
end
end
lib.handleAlert(v78, Frame, true, _TIME);
end
for index7 = 1, #table1 do
lib.handleAlert(index7, table1[index7]);
end
return TextLabel;
end)
end
Notifs = lib
end
-- ============================ CONFIGURAÇÕES ============================
local Config = {
Godmode = { Enabled = false },
Autofarm = { Enabled = false },
Kick = { Enabled = false },
AntiSpectator = { Enabled = false }
}
-- ============================ VARIÃVEIS GLOBAIS ============================
getgenv().TomatoAutoFarm = false
-- ============================ AUTOFARM COM KILL SWITCH ============================
local AutofarmLoaded = false
local AutofarmLoadSuccess = false
local AutofarmStatusText = "⌠Não carregado"
local AutofarmThreads = {}
local AutofarmConnections = {}
local function killAutofarm()
for _, thread in ipairs(AutofarmThreads) do
if coroutine.status(thread) == "suspended" or coroutine.status(thread) == "running" then
task.cancel(thread)
end
end
AutofarmThreads = {}
for _, conn in ipairs(AutofarmConnections) do
pcall(function() conn:Disconnect() end)
end
AutofarmConnections = {}
pcall(function()
for _, gui in ipairs(CoreGui:GetChildren()) do
if gui.Name:lower():match("autofarm") or gui.Name:lower():match("farm") then
gui:Destroy()
end
end
end)
getgenv().TomatoAutoFarm = false
for name, value in pairs(getgenv()) do
if type(value) == "function" and tostring(name):lower():match("autofarm") then
getgenv()[name] = nil
end
end
Notifs.alert("💀 Autofarm exterminado!", Color3.new(1,0,0), 3)
end
local function loadAutofarmScripts(attempt)
attempt = attempt or 1
local maxAttempts = 3
killAutofarm()
Notifs.alert("🔄 Tentativa "..attempt.." de carregar autofarm...", Color3.new(1,1,0), 2)
local function wrapScriptLoad(url)
local thread = coroutine.create(function()
local success, result = pcall(function()
return loadstring(game:HttpGet(url))()
end)
if success then
return result
else
return nil
end
end)
table.insert(AutofarmThreads, thread)
coroutine.resume(thread)
task.wait(0.5)
return true
end
local success1 = pcall(function() wrapScriptLoad("https://raw.githubusercontent.com/vericodified/AutofarmX/refs/heads/main/Source.lua") end)
local success2 = pcall(function() wrapScriptLoad("https://raw.githubusercontent.com/vericodified/AutofarmX/refs/heads/main/Source2.lua") end)
AutofarmLoadSuccess = success1 and success2
if AutofarmLoadSuccess then
AutofarmLoaded = true
AutofarmStatusText = "✅ Carregado"
Notifs.alert("✅ Autofarm carregado na tentativa "..attempt.."!", Color3.new(0,1,0), 3)
if AutofarmStatusLabel then
AutofarmStatusLabel.Text = "Autofarm: " .. AutofarmStatusText
end
return true
else
if attempt < maxAttempts then
Notifs.alert("âš ï¸ Falha na tentativa "..attempt..", tentando novamente...", Color3.new(1,0.5,0), 2)
task.wait(2)
return loadAutofarmScripts(attempt + 1)
else
AutofarmLoaded = false
AutofarmLoadSuccess = false
AutofarmStatusText = "⌠Falhou"
Notifs.alert("⌠Autofarm não carregado após "..maxAttempts.." tentativas.", Color3.new(1,0,0), 4)
if AutofarmStatusLabel then
AutofarmStatusLabel.Text = "Autofarm: " .. AutofarmStatusText
end
return false
end
end
end
local function setAutofarmState(state)
Config.Autofarm.Enabled = state
if state then
if not AutofarmLoadSuccess then
Notifs.alert("🔄 Autofarm não carregado. Tentando carregar...", Color3.new(1,1,0), 2)
task.spawn(function()
local success = loadAutofarmScripts()
if success then
getgenv().TomatoAutoFarm = true
Notifs.alert("✅ Autofarm ativado!", Color3.new(0,1,0), 2)
else
Config.Autofarm.Enabled = false
getgenv().TomatoAutoFarm = false
end
end)
else
getgenv().TomatoAutoFarm = true
Notifs.alert("✅ Autofarm ativado!", Color3.new(0,1,0), 2)
end
else
Notifs.alert("â˜ ï¸ Exterminando autofarm...", Color3.new(1,0,0), 2)
killAutofarm()
Notifs.alert("Autofarm desativado permanentemente", Color3.new(1,0,0), 2)
end
end
task.spawn(loadAutofarmScripts)
-- ============================ GODMODE ============================
local GodmodeConnection = nil
local function setupGodmode(character)
if not character then return end
local humanoid = character:WaitForChild("Humanoid", 5)
if not humanoid then return end
if GodmodeConnection then
GodmodeConnection:Disconnect()
GodmodeConnection = nil
end
if Config.Godmode.Enabled then
GodmodeConnection = humanoid:GetPropertyChangedSignal("Health"):Connect(function()
if humanoid and humanoid.Parent then
humanoid.Health = 9e9
end
end)
humanoid.Health = 9e9
end
end
if LocalPlayer.Character then
setupGodmode(LocalPlayer.Character)
end
LocalPlayer.CharacterAdded:Connect(setupGodmode)
-- ============================ KICK (JOINWATCHER) ============================
local KickCooldown = false
local function kickOnJoin(playerWhoJoined)
if not Config.Kick.Enabled or KickCooldown then return end
KickCooldown = true
local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then hum.Health = 0 end
for i = 5, 1, -1 do
Notifs.alert("âš ï¸ Kick em "..i.."s (jogador entrou)", Color3.new(1,0.5,0), 1)
task.wait(1)
end
if Config.Kick.Enabled then
LocalPlayer:Kick("Kick por entrada de jogador.")
end
KickCooldown = false
end
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer then
task.spawn(function() kickOnJoin(player) end)
end
end
Players.PlayerAdded:Connect(function(player)
if player ~= LocalPlayer then
kickOnJoin(player)
end
end)
-- ============================ DETECTOR DE ESPECTADORES ============================
local SpectatorDisplay = Instance.new("ScreenGui")
SpectatorDisplay.Name = "SpectatorDisplay"
SpectatorDisplay.ResetOnSpawn = false
SpectatorDisplay.Parent = CoreGui
local SpectatorFrame = Instance.new("Frame")
SpectatorFrame.Size = UDim2.new(0, 220, 0, 50)
SpectatorFrame.Position = UDim2.new(0.8, -110, 0.9, -25)
SpectatorFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
SpectatorFrame.BackgroundTransparency = 0.3
SpectatorFrame.BorderSizePixel = 0
SpectatorFrame.Parent = SpectatorDisplay
SpectatorFrame.Visible = false
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 8)
UICorner.Parent = SpectatorFrame
local SpectatorText = Instance.new("TextLabel")
SpectatorText.Size = UDim2.new(1, 0, 1, 0)
SpectatorText.BackgroundTransparency = 1
SpectatorText.Text = "👀 Nenhum espectador"
SpectatorText.TextColor3 = Color3.new(1, 1, 1)
SpectatorText.TextScaled = true
SpectatorText.Font = Enum.Font.GothamBold
SpectatorText.Parent = SpectatorFrame
local function isPlayerLookingAtMe(player)
if player == LocalPlayer then return false end
local character = player.Character
if not character then return false end
local head = character:FindFirstChild("Head")
if not head then return false end
local myChar = LocalPlayer.Character
if not myChar then return false end
local myHead = myChar:FindFirstChild("Head")
if not myHead then return false end
local lookVector = head.CFrame.LookVector
local toMe = (myHead.Position - head.Position).Unit
local dot = lookVector:Dot(toMe)
local angle = math.deg(math.acos(dot))
if angle > 30 then return false end
local distance = (head.Position - myHead.Position).Magnitude
if distance > 100 then return false end
local raycastParams = RaycastParams.new()
raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
raycastParams.FilterDescendantsInstances = {character, myChar}
local rayResult = Workspace:Raycast(head.Position, toMe * distance, raycastParams)
if rayResult then return false end
return true
end
task.spawn(function()
while task.wait(0.5) do
if Config.AntiSpectator.Enabled then
local count = 0
local names = {}
for _, player in ipairs(Players:GetPlayers()) do
if isPlayerLookingAtMe(player) then
count = count + 1
table.insert(names, player.Name)
end
end
if count == 0 then
SpectatorText.Text = "👀 Nenhum espectador"
else
SpectatorText.Text = "👀 " .. count .. " espectador(es): " .. table.concat(names, ", ")
end
SpectatorFrame.Visible = true
else
SpectatorFrame.Visible = false
end
end
end)
-- ============================ UI PRÓPRIA (COM BOTÃO DE SUICÃDIO) ============================
local UIGui = Instance.new("ScreenGui")
UIGui.Name = "MeuHubUI"
UIGui.ResetOnSpawn = false
UIGui.Parent = CoreGui
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 340, 0, 500) -- Mais espaço para o botão novo
MainFrame.Position = UDim2.new(0.5, -170, 0.4, -250)
MainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 45)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Parent = UIGui
local UICornerMain = Instance.new("UICorner")
UICornerMain.CornerRadius = UDim.new(0, 12)
UICornerMain.Parent = MainFrame
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.BackgroundTransparency = 1
Title.Text = "âš¡ HUB UNIFICADO"
Title.TextColor3 = Color3.new(1, 1, 1)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 20
Title.Parent = MainFrame
-- Função para criar um toggle
local function createToggle(parent, name, yPos, defaultState, callback)
local bg = Instance.new("Frame")
bg.Size = UDim2.new(0.9, 0, 0, 40)
bg.Position = UDim2.new(0.05, 0, 0, yPos)
bg.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
bg.BackgroundTransparency = 0.5
bg.BorderSizePixel = 0
bg.Parent = parent
local bgCorner = Instance.new("UICorner")
bgCorner.CornerRadius = UDim.new(0, 8)
bgCorner.Parent = bg
local label = Instance.new("TextLabel")
label.Size = UDim2.new(0.6, 0, 1, 0)
label.Position = UDim2.new(0, 10, 0, 0)
label.BackgroundTransparency = 1
label.Text = name
label.TextColor3 = Color3.new(1, 1, 1)
label.Font = Enum.Font.Gotham
label.TextSize = 16
label.TextXAlignment = Enum.TextXAlignment.Left
label.Parent = bg
local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 60, 0, 30)
button.Position = UDim2.new(1, -70, 0.5, -15)
button.BackgroundColor3 = defaultState and Color3.new(0, 170, 0) or Color3.new(170, 0, 0)
button.Text = defaultState and "ON" or "OFF"
button.TextColor3 = Color3.new(1, 1, 1)
button.Font = Enum.Font.GothamBold
button.TextSize = 14
button.BorderSizePixel = 0
button.Parent = bg
local btnCorner = Instance.new("UICorner")
btnCorner.CornerRadius = UDim.new(0, 6)
btnCorner.Parent = button
local state = defaultState
button.MouseButton1Click:Connect(function()
state = not state
button.BackgroundColor3 = state and Color3.new(0, 170, 0) or Color3.new(170, 0, 0)
button.Text = state and "ON" or "OFF"
callback(state)
end)
return button
end
-- Criar os toggles
createToggle(MainFrame, "Godmode", 50, false, function(state)
Config.Godmode.Enabled = state
setupGodmode(LocalPlayer.Character)
Notifs.alert("Godmode " .. (state and "ATIVADO" or "DESATIVADO"), state and Color3.new(0,1,0) or Color3.new(1,0,0), 2)
end)
createToggle(MainFrame, "Autofarm", 100, false, setAutofarmState)
createToggle(MainFrame, "Kick (Join)", 150, false, function(state)
Config.Kick.Enabled = state
Notifs.alert("Kick " .. (state and "ATIVADO" or "DESATIVADO"), state and Color3.new(0,1,0) or Color3.new(1,0,0), 2)
end)
createToggle(MainFrame, "Anti-Spectator", 200, false, function(state)
Config.AntiSpectator.Enabled = state
if not state then SpectatorFrame.Visible = false end
Notifs.alert("Anti-Spectator " .. (state and "ATIVADO" or "DESATIVADO"), state and Color3.new(0,1,0) or Color3.new(1,0,0), 2)
end)
-- Status do autofarm
local StatusBg = Instance.new("Frame")
StatusBg.Size = UDim2.new(0.9, 0, 0, 30)
StatusBg.Position = UDim2.new(0.05, 0, 0, 260)
StatusBg.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
StatusBg.BorderSizePixel = 0
StatusBg.Parent = MainFrame
local StatusCorner = Instance.new("UICorner")
StatusCorner.CornerRadius = UDim.new(0, 6)
StatusCorner.Parent = StatusBg
local StatusLabel = Instance.new("TextLabel")
StatusLabel.Size = UDim2.new(1, 0, 1, 0)
StatusLabel.BackgroundTransparency = 1
StatusLabel.Text = "Autofarm: " .. AutofarmStatusText
StatusLabel.TextColor3 = Color3.new(1,1,1)
StatusLabel.Font = Enum.Font.Gotham
StatusLabel.TextSize = 14
StatusLabel.Parent = StatusBg
AutofarmStatusLabel = StatusLabel
-- Botão para recarregar autofarm
local ReloadBtn = Instance.new("TextButton")
ReloadBtn.Size = UDim2.new(0.8, 0, 0, 30)
ReloadBtn.Position = UDim2.new(0.1, 0, 0, 300)
ReloadBtn.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
ReloadBtn.Text = "🔄 Recarregar Autofarm"
ReloadBtn.TextColor3 = Color3.new(1,1,1)
ReloadBtn.Font = Enum.Font.Gotham
ReloadBtn.TextSize = 14
ReloadBtn.BorderSizePixel = 0
ReloadBtn.Parent = MainFrame
local ReloadCorner = Instance.new("UICorner")
ReloadCorner.CornerRadius = UDim.new(0, 8)
ReloadCorner.Parent = ReloadBtn
ReloadBtn.MouseButton1Click:Connect(function()
loadAutofarmScripts()
end)
-- Botão KILL SWITCH (para autofarm)
local KillBtn = Instance.new("TextButton")
KillBtn.Size = UDim2.new(0.8, 0, 0, 30)
KillBtn.Position = UDim2.new(0.1, 0, 0, 340)
KillBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
KillBtn.Text = "💀 KILL AUTOFARM"
KillBtn.TextColor3 = Color3.new(1,1,1)
KillBtn.Font = Enum.Font.GothamBold
KillBtn.TextSize = 14
KillBtn.BorderSizePixel = 0
KillBtn.Parent = MainFrame
local KillCorner = Instance.new("UICorner")
KillCorner.CornerRadius = UDim.new(0, 8)
KillCorner.Parent = KillBtn
KillBtn.MouseButton1Click:Connect(function()
Config.Autofarm.Enabled = false
killAutofarm()
Notifs.alert("💀 KILL SWITCH ATIVADO! Autofarm exterminado.", Color3.new(1,0,0), 4)
end)
-- ==================== BOTÃO DE SUICÃDIO ====================
local SuicideBtn = Instance.new("TextButton")
SuicideBtn.Size = UDim2.new(0.8, 0, 0, 40)
SuicideBtn.Position = UDim2.new(0.1, 0, 0, 390)
SuicideBtn.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
SuicideBtn.Text = "💀 SUICÃDIO (matar a si mesmo)"
SuicideBtn.TextColor3 = Color3.new(1,1,1)
SuicideBtn.Font = Enum.Font.GothamBold
SuicideBtn.TextSize = 16
SuicideBtn.BorderSizePixel = 0
SuicideBtn.Parent = MainFrame
local SuicideCorner = Instance.new("UICorner")
SuicideCorner.CornerRadius = UDim.new(0, 10)
SuicideCorner.Parent = SuicideBtn
SuicideBtn.MouseButton1Click:Connect(function()
Notifs.alert("💀 Suicidando...", Color3.new(1,0,0), 2)
local char = LocalPlayer.Character
if char then
local humanoid = char:FindFirstChildOfClass("Humanoid")
if humanoid then
-- Desativa godmode temporariamente se necessário
local godmodeWasOn = Config.Godmode.Enabled
if godmodeWasOn then
Config.Godmode.Enabled = false
if GodmodeConnection then
GodmodeConnection:Disconnect()
GodmodeConnection = nil
end
end
-- Mata
humanoid.Health = 0
-- Reativa godmode se estava ativo (para o próximo spawn)
if godmodeWasOn then
Config.Godmode.Enabled = true
LocalPlayer.CharacterAdded:Wait() -- espera o novo personagem
setupGodmode(LocalPlayer.Character)
end
else
Notifs.alert("⌠Sem humanoid!", Color3.new(1,0,0), 2)
end
else
Notifs.alert("⌠Sem personagem!", Color3.new(1,0,0), 2)
end
end)
-- Botão para fechar
local CloseButton = Instance.new("TextButton")
CloseButton.Size = UDim2.new(0, 30, 0, 30)
CloseButton.Position = UDim2.new(1, -35, 0, 5)
CloseButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
CloseButton.Text = "X"
CloseButton.TextColor3 = Color3.new(1, 1, 1)
CloseButton.Font = Enum.Font.GothamBold
CloseButton.TextSize = 16
CloseButton.BorderSizePixel = 0
CloseButton.Parent = MainFrame
local CloseCorner = Instance.new("UICorner")
CloseCorner.CornerRadius = UDim.new(0, 8)
CloseCorner.Parent = CloseButton
CloseButton.MouseButton1Click:Connect(function()
UIGui:Destroy()
Notifs.alert("Hub fechado", Color3.new(1,0,0), 2)
end)
-- Notificação inicial
Notifs.alert("🔥 Hub com botão de suicÃdio carregado!", Color3.new(0,1,0), 3)
print("✅ Script com botão de SUICÃDIO rodando!")Dominate every map in Flood Escape 2 using this powerful multi-feature hub script. The script includes survival tools, automation features, and protection systems designed to help you progress faster and avoid common in-game issues.
With options like God Mode, Autofarm, and Anti-Spectator, you can complete stages more safely while automating parts of the gameplay. The custom UI makes it easy to toggle features on or off directly in-game.
This script also includes extra utility tools such as a Kill Switch for Autofarm and a Suicide button to quickly reset your character when needed.
No comments yet. Be the first to comment!
1--[[
2 SCRIPT COM UI PRÓPRIA - COM BOTÃO DE SUICÃDIO
3 Funcionalidades:
4 - Godmode toggle
5 - Autofarm toggle (com kill switch)
6 - Kick toggle
7 - Anti-spectator toggle
8 - Botão de SUICÃDIO (mata o próprio personagem)
9--]]
10
11-- ============================ SERVIÇOS ============================
12local Players = game:GetService("Players")
13local TweenService = game:GetService("TweenService")
14local RunService = game:GetService("RunService")
15local Workspace = game:GetService("Workspace")
16local LocalPlayer = Players.LocalPlayer
17local CoreGui = game:GetService("CoreGui")
18
19-- ============================ BIBLIOTECA DE NOTIFICAÇÕES (FE2Notifs EMBUTIDA) ============================
20do
21 local lib = {}
22 local table1 = {}
23 local cloneref = cloneref or function(o) return o end
24 local coregui = CoreGui
25 local _SGUI = Instance.new('ScreenGui', coregui)
26 _SGUI.Name = 'FE2Notifs'
27 local TopFrame = Instance.new("Frame")
28 local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
29
30 TopFrame.Name = ";3"
31 TopFrame.Parent = _SGUI
32 TopFrame.BackgroundColor3 = Color3.new(1, 1, 1)
33 TopFrame.BackgroundTransparency = 1
34 TopFrame.Position = UDim2.new(0.371764719, 0, 0, 0)
35 TopFrame.Size = UDim2.new(0.255882353, 0, 0.0865671635, 0)
36 _SGUI.IgnoreGuiInset = false
37 _SGUI.ResetOnSpawn = false
38
39 UIAspectRatioConstraint.Parent = TopFrame
40 UIAspectRatioConstraint.AspectRatio = 8.039999961853027
41
42 function lib.handleAlert(p56, p57, p58, p59)
43 if p57.Parent == _SGUI[';3'] then
44 local v48 = (p56 > 4 or p58) and p56 or p56 - 1;
45 local v49 = (p56 > 4 or p58) and "In" or "Out";
46 if p56 > 4 or p58 then
47 p57.ZIndex = 0;
48 table.remove(table1, p56);
49 local TweenInfo_new_ret13 = TweenInfo.new(0.3, Enum.EasingStyle.Quint, Enum.EasingDirection.In);
50 cloneref(TweenService):Create(p57.Alert_Shadow, TweenInfo_new_ret13, {
51 ImageTransparency = 1
52 }):Play();
53 cloneref(TweenService):Create(p57.Alert, TweenInfo_new_ret13, {
54 TextTransparency = 1.1,
55 TextStrokeTransparency = 1
56 }):Play();
57 task.delay(0.3, function()
58 p57:Destroy();
59 end);
60 return;
61 end
62 p57:TweenPosition(UDim2.new(0.5, 0, v48, 0), v49, "Sine", 0.325, true);
63 end
64 end
65
66 function lib.alert(text, clr, tim, special)
67 task.spawn(function()
68 local _TIME = tim or 4.5;
69 local Frame = Instance.new("Frame");
70 local ImageLabel = Instance.new("ImageLabel");
71 local TextLabel = Instance.new("TextLabel");
72 Frame.Name = "Alert_Frame";
73 Frame.Size = UDim2.new(1, 0, 1, 0);
74 Frame.Position = UDim2.new(0.5, 0, -1, 0);
75 Frame.AnchorPoint = Vector2.new(0.5, 0);
76 Frame.BackgroundTransparency = 1;
77 local UIScale = Instance.new("UIScale");
78 UIScale.Scale = 0;
79 UIScale.Parent = Frame;
80 ImageLabel.Name = "Alert_Shadow";
81 ImageLabel.BackgroundTransparency = 1;
82 ImageLabel.Image = "rbxassetid://1057492965";
83 ImageLabel.ImageTransparency = 0.5;
84 ImageLabel.Size = UDim2.new(1, 0, 1, 0);
85 ImageLabel.Parent = Frame;
86 TextLabel.Name = "Alert";
87 TextLabel.ZIndex = 3;
88 TextLabel.Text = text;
89 TextLabel.TextColor3 = clr or Color3.new(1, 1, 1);
90 TextLabel.TextScaled = true;
91 TextLabel.Font = "Ubuntu";
92 TextLabel.TextStrokeTransparency = 0;
93 TextLabel.BackgroundTransparency = 1;
94 TextLabel.BackgroundColor3 = Color3.new();
95 TextLabel.BorderSizePixel = 0;
96 TextLabel.Size = UDim2.new(1, 0, 1, 0);
97 local UIGradient = Instance.new("UIGradient");
98 UIGradient.Color = ColorSequence.new(Color3.fromRGB(255, 255, 255), Color3.fromRGB(159, 159, 159));
99 UIGradient.Rotation = 90;
100 UIGradient.Parent = TextLabel;
101 TextLabel.Parent = Frame;
102 Frame.Parent = _SGUI[';3'];
103 if _TIME > 8 then
104 local Frame2 = Instance.new("Frame", TextLabel);
105 Frame2.BorderSizePixel = 0;
106 Frame2.BackgroundColor3 = clr or Color3.new(1, 1, 1);
107 Frame2.AnchorPoint = Vector2.new(0.5, 0.5);
108 Frame2.Position = UDim2.new(0.5);
109 Frame2.Size = UDim2.new(1, 0, 0.1, 0);
110 Frame2:TweenSize(UDim2.new(0, 0, 0.1, 0), "Out", "Linear", _TIME);
111 local ImageLabel2 = Instance.new("ImageLabel", Frame2);
112 ImageLabel2.Image = "rbxassetid://156579757";
113 ImageLabel2.Size = UDim2.new(1, 0, 1, 0);
114 ImageLabel2.BackgroundTransparency = 1;
115 ImageLabel2.ImageTransparency = 0.5;
116 end
117 if special == "rainbow" then
118 task.spawn(function()
119 local v85 = 0;
120 while TextLabel and task.wait() do
121 if v85 > 1 then
122 v85 = 0;
123 end
124 TextLabel.TextColor3 = Color3.fromHSV(v85, 1, 1);
125 v85 = v85 + 1 / 120;
126 end
127 end);
128 end
129 local v55 = 1;
130 table.insert(table1, v55, Frame);
131 for index6 = 1, #table1 do
132 lib.handleAlert(index6, table1[index6]);
133 end
134 local TweenInfo_new_ret14 = TweenInfo.new(0.325, Enum.EasingStyle.Quint, Enum.EasingDirection.Out);
135 cloneref(TweenService):Create(Frame.UIScale, TweenInfo_new_ret14, {
136 Scale = 1
137 }):Play();
138 cloneref(TweenService):Create(TextLabel, TweenInfo_new_ret14, {
139 TextTransparency = 0,
140 TextStrokeTransparency = 0.1
141 }):Play();
142 task.wait(_TIME)
143 if Frame and TextLabel and TextLabel.TextTransparency <= 0 then
144 local v78 = 1;
145 for index10 = 1, #table1 do
146 if table1[index10] == Frame then
147 v78 = index10;
148 break;
149 end
150 end
151 lib.handleAlert(v78, Frame, true, _TIME);
152 end
153 for index7 = 1, #table1 do
154 lib.handleAlert(index7, table1[index7]);
155 end
156 return TextLabel;
157 end)
158 end
159
160 Notifs = lib
161end
162
163-- ============================ CONFIGURAÇÕES ============================
164local Config = {
165 Godmode = { Enabled = false },
166 Autofarm = { Enabled = false },
167 Kick = { Enabled = false },
168 AntiSpectator = { Enabled = false }
169}
170
171-- ============================ VARIÃVEIS GLOBAIS ============================
172getgenv().TomatoAutoFarm = false
173
174-- ============================ AUTOFARM COM KILL SWITCH ============================
175local AutofarmLoaded = false
176local AutofarmLoadSuccess = false
177local AutofarmStatusText = "⌠Não carregado"
178local AutofarmThreads = {}
179local AutofarmConnections = {}
180
181local function killAutofarm()
182 for _, thread in ipairs(AutofarmThreads) do
183 if coroutine.status(thread) == "suspended" or coroutine.status(thread) == "running" then
184 task.cancel(thread)
185 end
186 end
187 AutofarmThreads = {}
188
189 for _, conn in ipairs(AutofarmConnections) do
190 pcall(function() conn:Disconnect() end)
191 end
192 AutofarmConnections = {}
193
194 pcall(function()
195 for _, gui in ipairs(CoreGui:GetChildren()) do
196 if gui.Name:lower():match("autofarm") or gui.Name:lower():match("farm") then
197 gui:Destroy()
198 end
199 end
200 end)
201
202 getgenv().TomatoAutoFarm = false
203
204 for name, value in pairs(getgenv()) do
205 if type(value) == "function" and tostring(name):lower():match("autofarm") then
206 getgenv()[name] = nil
207 end
208 end
209
210 Notifs.alert("💀 Autofarm exterminado!", Color3.new(1,0,0), 3)
211end
212
213local function loadAutofarmScripts(attempt)
214 attempt = attempt or 1
215 local maxAttempts = 3
216
217 killAutofarm()
218
219 Notifs.alert("🔄 Tentativa "..attempt.." de carregar autofarm...", Color3.new(1,1,0), 2)
220
221 local function wrapScriptLoad(url)
222 local thread = coroutine.create(function()
223 local success, result = pcall(function()
224 return loadstring(game:HttpGet(url))()
225 end)
226 if success then
227 return result
228 else
229 return nil
230 end
231 end)
232 table.insert(AutofarmThreads, thread)
233 coroutine.resume(thread)
234 task.wait(0.5)
235 return true
236 end
237
238 local success1 = pcall(function() wrapScriptLoad("https://raw.githubusercontent.com/vericodified/AutofarmX/refs/heads/main/Source.lua") end)
239 local success2 = pcall(function() wrapScriptLoad("https://raw.githubusercontent.com/vericodified/AutofarmX/refs/heads/main/Source2.lua") end)
240
241 AutofarmLoadSuccess = success1 and success2
242 if AutofarmLoadSuccess then
243 AutofarmLoaded = true
244 AutofarmStatusText = "✅ Carregado"
245 Notifs.alert("✅ Autofarm carregado na tentativa "..attempt.."!", Color3.new(0,1,0), 3)
246 if AutofarmStatusLabel then
247 AutofarmStatusLabel.Text = "Autofarm: " .. AutofarmStatusText
248 end
249 return true
250 else
251 if attempt < maxAttempts then
252 Notifs.alert("âš ï¸ Falha na tentativa "..attempt..", tentando novamente...", Color3.new(1,0.5,0), 2)
253 task.wait(2)
254 return loadAutofarmScripts(attempt + 1)
255 else
256 AutofarmLoaded = false
257 AutofarmLoadSuccess = false
258 AutofarmStatusText = "⌠Falhou"
259 Notifs.alert("⌠Autofarm não carregado após "..maxAttempts.." tentativas.", Color3.new(1,0,0), 4)
260 if AutofarmStatusLabel then
261 AutofarmStatusLabel.Text = "Autofarm: " .. AutofarmStatusText
262 end
263 return false
264 end
265 end
266end
267
268local function setAutofarmState(state)
269 Config.Autofarm.Enabled = state
270 if state then
271 if not AutofarmLoadSuccess then
272 Notifs.alert("🔄 Autofarm não carregado. Tentando carregar...", Color3.new(1,1,0), 2)
273 task.spawn(function()
274 local success = loadAutofarmScripts()
275 if success then
276 getgenv().TomatoAutoFarm = true
277 Notifs.alert("✅ Autofarm ativado!", Color3.new(0,1,0), 2)
278 else
279 Config.Autofarm.Enabled = false
280 getgenv().TomatoAutoFarm = false
281 end
282 end)
283 else
284 getgenv().TomatoAutoFarm = true
285 Notifs.alert("✅ Autofarm ativado!", Color3.new(0,1,0), 2)
286 end
287 else
288 Notifs.alert("â˜ ï¸ Exterminando autofarm...", Color3.new(1,0,0), 2)
289 killAutofarm()
290 Notifs.alert("Autofarm desativado permanentemente", Color3.new(1,0,0), 2)
291 end
292end
293
294task.spawn(loadAutofarmScripts)
295
296-- ============================ GODMODE ============================
297local GodmodeConnection = nil
298
299local function setupGodmode(character)
300 if not character then return end
301 local humanoid = character:WaitForChild("Humanoid", 5)
302 if not humanoid then return end
303
304 if GodmodeConnection then
305 GodmodeConnection:Disconnect()
306 GodmodeConnection = nil
307 end
308
309 if Config.Godmode.Enabled then
310 GodmodeConnection = humanoid:GetPropertyChangedSignal("Health"):Connect(function()
311 if humanoid and humanoid.Parent then
312 humanoid.Health = 9e9
313 end
314 end)
315 humanoid.Health = 9e9
316 end
317end
318
319if LocalPlayer.Character then
320 setupGodmode(LocalPlayer.Character)
321end
322LocalPlayer.CharacterAdded:Connect(setupGodmode)
323
324-- ============================ KICK (JOINWATCHER) ============================
325local KickCooldown = false
326
327local function kickOnJoin(playerWhoJoined)
328 if not Config.Kick.Enabled or KickCooldown then return end
329 KickCooldown = true
330 local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
331 local hum = char:FindFirstChildOfClass("Humanoid")
332 if hum then hum.Health = 0 end
333
334 for i = 5, 1, -1 do
335 Notifs.alert("âš ï¸ Kick em "..i.."s (jogador entrou)", Color3.new(1,0.5,0), 1)
336 task.wait(1)
337 end
338
339 if Config.Kick.Enabled then
340 LocalPlayer:Kick("Kick por entrada de jogador.")
341 end
342 KickCooldown = false
343end
344
345for _, player in ipairs(Players:GetPlayers()) do
346 if player ~= LocalPlayer then
347 task.spawn(function() kickOnJoin(player) end)
348 end
349end
350
351Players.PlayerAdded:Connect(function(player)
352 if player ~= LocalPlayer then
353 kickOnJoin(player)
354 end
355end)
356
357-- ============================ DETECTOR DE ESPECTADORES ============================
358local SpectatorDisplay = Instance.new("ScreenGui")
359SpectatorDisplay.Name = "SpectatorDisplay"
360SpectatorDisplay.ResetOnSpawn = false
361SpectatorDisplay.Parent = CoreGui
362
363local SpectatorFrame = Instance.new("Frame")
364SpectatorFrame.Size = UDim2.new(0, 220, 0, 50)
365SpectatorFrame.Position = UDim2.new(0.8, -110, 0.9, -25)
366SpectatorFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
367SpectatorFrame.BackgroundTransparency = 0.3
368SpectatorFrame.BorderSizePixel = 0
369SpectatorFrame.Parent = SpectatorDisplay
370SpectatorFrame.Visible = false
371
372local UICorner = Instance.new("UICorner")
373UICorner.CornerRadius = UDim.new(0, 8)
374UICorner.Parent = SpectatorFrame
375
376local SpectatorText = Instance.new("TextLabel")
377SpectatorText.Size = UDim2.new(1, 0, 1, 0)
378SpectatorText.BackgroundTransparency = 1
379SpectatorText.Text = "👀 Nenhum espectador"
380SpectatorText.TextColor3 = Color3.new(1, 1, 1)
381SpectatorText.TextScaled = true
382SpectatorText.Font = Enum.Font.GothamBold
383SpectatorText.Parent = SpectatorFrame
384
385local function isPlayerLookingAtMe(player)
386 if player == LocalPlayer then return false end
387 local character = player.Character
388 if not character then return false end
389 local head = character:FindFirstChild("Head")
390 if not head then return false end
391
392 local myChar = LocalPlayer.Character
393 if not myChar then return false end
394 local myHead = myChar:FindFirstChild("Head")
395 if not myHead then return false end
396
397 local lookVector = head.CFrame.LookVector
398 local toMe = (myHead.Position - head.Position).Unit
399 local dot = lookVector:Dot(toMe)
400 local angle = math.deg(math.acos(dot))
401 if angle > 30 then return false end
402
403 local distance = (head.Position - myHead.Position).Magnitude
404 if distance > 100 then return false end
405
406 local raycastParams = RaycastParams.new()
407 raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
408 raycastParams.FilterDescendantsInstances = {character, myChar}
409 local rayResult = Workspace:Raycast(head.Position, toMe * distance, raycastParams)
410 if rayResult then return false end
411
412 return true
413end
414
415task.spawn(function()
416 while task.wait(0.5) do
417 if Config.AntiSpectator.Enabled then
418 local count = 0
419 local names = {}
420 for _, player in ipairs(Players:GetPlayers()) do
421 if isPlayerLookingAtMe(player) then
422 count = count + 1
423 table.insert(names, player.Name)
424 end
425 end
426 if count == 0 then
427 SpectatorText.Text = "👀 Nenhum espectador"
428 else
429 SpectatorText.Text = "👀 " .. count .. " espectador(es): " .. table.concat(names, ", ")
430 end
431 SpectatorFrame.Visible = true
432 else
433 SpectatorFrame.Visible = false
434 end
435 end
436end)
437
438-- ============================ UI PRÓPRIA (COM BOTÃO DE SUICÃDIO) ============================
439local UIGui = Instance.new("ScreenGui")
440UIGui.Name = "MeuHubUI"
441UIGui.ResetOnSpawn = false
442UIGui.Parent = CoreGui
443
444local MainFrame = Instance.new("Frame")
445MainFrame.Size = UDim2.new(0, 340, 0, 500) -- Mais espaço para o botão novo
446MainFrame.Position = UDim2.new(0.5, -170, 0.4, -250)
447MainFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 45)
448MainFrame.BorderSizePixel = 0
449MainFrame.Active = true
450MainFrame.Draggable = true
451MainFrame.Parent = UIGui
452
453local UICornerMain = Instance.new("UICorner")
454UICornerMain.CornerRadius = UDim.new(0, 12)
455UICornerMain.Parent = MainFrame
456
457local Title = Instance.new("TextLabel")
458Title.Size = UDim2.new(1, 0, 0, 40)
459Title.Position = UDim2.new(0, 0, 0, 0)
460Title.BackgroundTransparency = 1
461Title.Text = "âš¡ HUB UNIFICADO"
462Title.TextColor3 = Color3.new(1, 1, 1)
463Title.Font = Enum.Font.GothamBold
464Title.TextSize = 20
465Title.Parent = MainFrame
466
467-- Função para criar um toggle
468local function createToggle(parent, name, yPos, defaultState, callback)
469 local bg = Instance.new("Frame")
470 bg.Size = UDim2.new(0.9, 0, 0, 40)
471 bg.Position = UDim2.new(0.05, 0, 0, yPos)
472 bg.BackgroundColor3 = Color3.fromRGB(50, 50, 60)
473 bg.BackgroundTransparency = 0.5
474 bg.BorderSizePixel = 0
475 bg.Parent = parent
476
477 local bgCorner = Instance.new("UICorner")
478 bgCorner.CornerRadius = UDim.new(0, 8)
479 bgCorner.Parent = bg
480
481 local label = Instance.new("TextLabel")
482 label.Size = UDim2.new(0.6, 0, 1, 0)
483 label.Position = UDim2.new(0, 10, 0, 0)
484 label.BackgroundTransparency = 1
485 label.Text = name
486 label.TextColor3 = Color3.new(1, 1, 1)
487 label.Font = Enum.Font.Gotham
488 label.TextSize = 16
489 label.TextXAlignment = Enum.TextXAlignment.Left
490 label.Parent = bg
491
492 local button = Instance.new("TextButton")
493 button.Size = UDim2.new(0, 60, 0, 30)
494 button.Position = UDim2.new(1, -70, 0.5, -15)
495 button.BackgroundColor3 = defaultState and Color3.new(0, 170, 0) or Color3.new(170, 0, 0)
496 button.Text = defaultState and "ON" or "OFF"
497 button.TextColor3 = Color3.new(1, 1, 1)
498 button.Font = Enum.Font.GothamBold
499 button.TextSize = 14
500 button.BorderSizePixel = 0
501 button.Parent = bg
502
503 local btnCorner = Instance.new("UICorner")
504 btnCorner.CornerRadius = UDim.new(0, 6)
505 btnCorner.Parent = button
506
507 local state = defaultState
508
509 button.MouseButton1Click:Connect(function()
510 state = not state
511 button.BackgroundColor3 = state and Color3.new(0, 170, 0) or Color3.new(170, 0, 0)
512 button.Text = state and "ON" or "OFF"
513 callback(state)
514 end)
515
516 return button
517end
518
519-- Criar os toggles
520createToggle(MainFrame, "Godmode", 50, false, function(state)
521 Config.Godmode.Enabled = state
522 setupGodmode(LocalPlayer.Character)
523 Notifs.alert("Godmode " .. (state and "ATIVADO" or "DESATIVADO"), state and Color3.new(0,1,0) or Color3.new(1,0,0), 2)
524end)
525
526createToggle(MainFrame, "Autofarm", 100, false, setAutofarmState)
527
528createToggle(MainFrame, "Kick (Join)", 150, false, function(state)
529 Config.Kick.Enabled = state
530 Notifs.alert("Kick " .. (state and "ATIVADO" or "DESATIVADO"), state and Color3.new(0,1,0) or Color3.new(1,0,0), 2)
531end)
532
533createToggle(MainFrame, "Anti-Spectator", 200, false, function(state)
534 Config.AntiSpectator.Enabled = state
535 if not state then SpectatorFrame.Visible = false end
536 Notifs.alert("Anti-Spectator " .. (state and "ATIVADO" or "DESATIVADO"), state and Color3.new(0,1,0) or Color3.new(1,0,0), 2)
537end)
538
539-- Status do autofarm
540local StatusBg = Instance.new("Frame")
541StatusBg.Size = UDim2.new(0.9, 0, 0, 30)
542StatusBg.Position = UDim2.new(0.05, 0, 0, 260)
543StatusBg.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
544StatusBg.BorderSizePixel = 0
545StatusBg.Parent = MainFrame
546
547local StatusCorner = Instance.new("UICorner")
548StatusCorner.CornerRadius = UDim.new(0, 6)
549StatusCorner.Parent = StatusBg
550
551local StatusLabel = Instance.new("TextLabel")
552StatusLabel.Size = UDim2.new(1, 0, 1, 0)
553StatusLabel.BackgroundTransparency = 1
554StatusLabel.Text = "Autofarm: " .. AutofarmStatusText
555StatusLabel.TextColor3 = Color3.new(1,1,1)
556StatusLabel.Font = Enum.Font.Gotham
557StatusLabel.TextSize = 14
558StatusLabel.Parent = StatusBg
559
560AutofarmStatusLabel = StatusLabel
561
562-- Botão para recarregar autofarm
563local ReloadBtn = Instance.new("TextButton")
564ReloadBtn.Size = UDim2.new(0.8, 0, 0, 30)
565ReloadBtn.Position = UDim2.new(0.1, 0, 0, 300)
566ReloadBtn.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
567ReloadBtn.Text = "🔄 Recarregar Autofarm"
568ReloadBtn.TextColor3 = Color3.new(1,1,1)
569ReloadBtn.Font = Enum.Font.Gotham
570ReloadBtn.TextSize = 14
571ReloadBtn.BorderSizePixel = 0
572ReloadBtn.Parent = MainFrame
573
574local ReloadCorner = Instance.new("UICorner")
575ReloadCorner.CornerRadius = UDim.new(0, 8)
576ReloadCorner.Parent = ReloadBtn
577
578ReloadBtn.MouseButton1Click:Connect(function()
579 loadAutofarmScripts()
580end)
581
582-- Botão KILL SWITCH (para autofarm)
583local KillBtn = Instance.new("TextButton")
584KillBtn.Size = UDim2.new(0.8, 0, 0, 30)
585KillBtn.Position = UDim2.new(0.1, 0, 0, 340)
586KillBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
587KillBtn.Text = "💀 KILL AUTOFARM"
588KillBtn.TextColor3 = Color3.new(1,1,1)
589KillBtn.Font = Enum.Font.GothamBold
590KillBtn.TextSize = 14
591KillBtn.BorderSizePixel = 0
592KillBtn.Parent = MainFrame
593
594local KillCorner = Instance.new("UICorner")
595KillCorner.CornerRadius = UDim.new(0, 8)
596KillCorner.Parent = KillBtn
597
598KillBtn.MouseButton1Click:Connect(function()
599 Config.Autofarm.Enabled = false
600 killAutofarm()
601 Notifs.alert("💀 KILL SWITCH ATIVADO! Autofarm exterminado.", Color3.new(1,0,0), 4)
602end)
603
604-- ==================== BOTÃO DE SUICÃDIO ====================
605local SuicideBtn = Instance.new("TextButton")
606SuicideBtn.Size = UDim2.new(0.8, 0, 0, 40)
607SuicideBtn.Position = UDim2.new(0.1, 0, 0, 390)
608SuicideBtn.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
609SuicideBtn.Text = "💀 SUICÃDIO (matar a si mesmo)"
610SuicideBtn.TextColor3 = Color3.new(1,1,1)
611SuicideBtn.Font = Enum.Font.GothamBold
612SuicideBtn.TextSize = 16
613SuicideBtn.BorderSizePixel = 0
614SuicideBtn.Parent = MainFrame
615
616local SuicideCorner = Instance.new("UICorner")
617SuicideCorner.CornerRadius = UDim.new(0, 10)
618SuicideCorner.Parent = SuicideBtn
619
620SuicideBtn.MouseButton1Click:Connect(function()
621 Notifs.alert("💀 Suicidando...", Color3.new(1,0,0), 2)
622 local char = LocalPlayer.Character
623 if char then
624 local humanoid = char:FindFirstChildOfClass("Humanoid")
625 if humanoid then
626 -- Desativa godmode temporariamente se necessário
627 local godmodeWasOn = Config.Godmode.Enabled
628 if godmodeWasOn then
629 Config.Godmode.Enabled = false
630 if GodmodeConnection then
631 GodmodeConnection:Disconnect()
632 GodmodeConnection = nil
633 end
634 end
635 -- Mata
636 humanoid.Health = 0
637 -- Reativa godmode se estava ativo (para o próximo spawn)
638 if godmodeWasOn then
639 Config.Godmode.Enabled = true
640 LocalPlayer.CharacterAdded:Wait() -- espera o novo personagem
641 setupGodmode(LocalPlayer.Character)
642 end
643 else
644 Notifs.alert("⌠Sem humanoid!", Color3.new(1,0,0), 2)
645 end
646 else
647 Notifs.alert("⌠Sem personagem!", Color3.new(1,0,0), 2)
648 end
649end)
650
651-- Botão para fechar
652local CloseButton = Instance.new("TextButton")
653CloseButton.Size = UDim2.new(0, 30, 0, 30)
654CloseButton.Position = UDim2.new(1, -35, 0, 5)
655CloseButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
656CloseButton.Text = "X"
657CloseButton.TextColor3 = Color3.new(1, 1, 1)
658CloseButton.Font = Enum.Font.GothamBold
659CloseButton.TextSize = 16
660CloseButton.BorderSizePixel = 0
661CloseButton.Parent = MainFrame
662
663local CloseCorner = Instance.new("UICorner")
664CloseCorner.CornerRadius = UDim.new(0, 8)
665CloseCorner.Parent = CloseButton
666
667CloseButton.MouseButton1Click:Connect(function()
668 UIGui:Destroy()
669 Notifs.alert("Hub fechado", Color3.new(1,0,0), 2)
670end)
671
672-- Notificação inicial
673Notifs.alert("🔥 Hub com botão de suicÃdio carregado!", Color3.new(0,1,0), 3)
674
675print("✅ Script com botão de SUICÃDIO rodando!")