if not game:IsLoaded() then game.Loaded:Wait() end task.wait(0.5) -- Limpeza pcall(function() local antigo = PlayerGui:FindFirstChild("MenuNativo local hbAntiga = workspace:FindFirstChild("HitboxInvisivel_AW") if hbAntiga then hbAntiga:Destroy() end end) local hitboxAtiva = false local alcanceFrontal = 12 -- --- INTERFACE GRÁFICA --- local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "MenuNativoHitbox" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 30) MainFrame.Position = UDim2.new(0.05, 0, 0.25, 0) MainFrame.Size = UDim2.new(0, 200, 0, 220) MainFrame.Active = true MainFrame.Draggable = true local Titulo = Instance.new("TextLabel") Titulo.Parent = MainFrame Titulo.Size = UDim2.new(1, 0, 0, 35) Titulo.BackgroundColor3 = Color3.fromRGB(40, 40, 45) Titulo.Text = "AW HITBOX FRONTAL" Titulo.TextColor3 = Color3.fromRGB(255, 255, 255) Titulo.TextSize = 14 Titulo.Font = Enum.Font.SourceSansBold local BotaoToggle = Instance.new("TextButton") BotaoToggle.Parent = MainFrame BotaoToggle.Position = UDim2.new(0.05, 0, 0.22, 0) BotaoToggle.Size = UDim2.new(0.9, 0, 0, 40) BotaoToggle.BackgroundColor3 = Color3.fromRGB(180, 50, 50) BotaoToggle.Text = "Hitbox: DESATIVADA" BotaoToggle.TextColor3 = Color3.fromRGB(255, 255, 255) BotaoToggle.TextSize = 14 BotaoToggle.Font = Enum.Font.SourceSans 255, 255) BotaoAumentar.TextSize = 12 local BotaoDiminuir = Instance.new("TextButton") BotaoDiminuir.Parent = MainFrame BotaoDiminuir.Position = UDim2.new(0.05, 0, 0.62, 0) BotaoDiminuir.Size = UDim2.new(0.9, 0, 0, 30) BotaoDiminuir.BackgroundColor3 = Color3.fromRGB(45, 45, 55) BotaoDiminuir.Text = "Diminuir Alcance (-)" BotaoDiminuir.TextColor3 = Color3.fromRGB(255, 255, 255) BotaoDiminuir.TextSize = 12 -- --- FUNÇÕES DOS BOTÕES (COM AJUSTE DE PRECISÃO) --- BotaoToggle.MouseButton1Click:Connect(function() hitboxAtiva = not hitboxAtiva if hitboxAtiva then BotaoToggle.BackgroundColor3 = Color3.fromRGB(50, 150, 50) BotaoToggle.Text = "Hitbox: ATIVADA" else BotaoToggle.BackgroundColor3 = Color3.fromRGB(180, 50, 50) BotaoToggle.Text = "Hitbox: DESATIVADA" local hb = workspace:FindFirstChild("HitboxInvisivel_AW") if hb then hb:Destroy() end end end) end) BotaoDiminuir.MouseButton1Click:Connect(function() if alcanceFrontal > 2 then -- Permite descer até o mínimo de 2 studs agora alcanceFrontal = alcanceFrontal - 1 -- Diminui de 1 em 1 para máxima precisão StatusLabel.Text = "Alcance Atual: " .. tostring(alcanceFrontal) .. " studs" end end) -- --- MOTOR DE TOQUE INTEGRADO --- RunService.RenderStepped:Connect(function() local char = LocalPlayer.Character if not char or not char:FindFirstChild("HumanoidRootPart") then return end local hb = workspace:FindFirstChild("HitboxInvisivel_AW") if hitboxAtiva then if not hb then hb = Instance.new("Part") hb.Name = "HitboxInvisivel_AW" hb.Parent = workspace hb.Anchored = true hb.CanCollide = false hb.Color = Color3.fromRGB(255, 0, 0) end hb.Size = Vector3.new(6, 6, alcanceFrontal) hb.Transparency = 0.6 hb.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 0, -(alcanceFrontal / 2) - 1) local socoLegitimo = char:FindFirstChildOfClass("Tool") or char:FindFirstChild("Hitbox") or char:FindFirstChild("RightHand") if socoLegitimo then local transmitter = socoLegitimo:FindFirstChildOfClass("TouchTransmitter") or (char:FindFirstChild("RightHand") and char.RightHand:FindFirstChildOfClass("TouchTransmitter")) if transmitter then local params = OverlapParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = {char, hb} local alvos = workspace:GetPartBoundsInBox(hb.CFrame, hb.Size, params) for _, parte in pairs(alvos) do local inimigoChar = parte.Parent if inimigoChar and inimigoChar:FindFirstChildOfClass("Humanoid") and inimigoChar ~= char then firetouchinterest(socoLegitimo, parte, 0) task.wait() firetouchinterest(socoLegitimo, parte, 1) end end end end else if hb then hb:Destroy() end end end)