local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local ScreenGui = Instance.new("ScreenGui", game.CoreGui) ScreenGui.Name = "HitboxGui" local button = Instance.new("TextButton") button.Size = UDim2.new(0, 100, 0, 50) button.Position = UDim2.new(0, 20, 0, 20) button.Text = "Toggle Hitbox" button.BackgroundColor3 = Color3.fromRGB(50, 50, 50) button.TextColor3 = Color3.new(1, 1, 1) button.Parent = ScreenGui local hitboxEnabled = false local hitboxBoxes = {} local originalSizes = {} local hitboxSizeIncrease = Vector3.new(15, 15, 15) -- tamanho aumentado da hitbox local function createHitboxBox(hrp) local box = Instance.new("BoxHandleAdornment") box.Adornee = hrp box.Size = hrp.Size box.Color3 = Color3.new(1, 0, 0) -- vermelho box.Transparency = 0.5 box.AlwaysOnTop = true box.ZIndex = 10 box.Parent = hrp return box end local function increaseHitbox(player) local character = player.Character if not character then return end local hrp = character:FindFirstChild("HumanoidRootPart") if not hrp then return end if not originalSizes[player] then originalSizes[player] = hrp.Size end hrp.Size = hitboxSizeIncrease -- setar diretamente para o tamanho desejado if hitboxBoxes[player] then hitboxBoxes[player]:Destroy() end hitboxBoxes[player] = createHitboxBox(hrp) end local function restoreHitbox(player) local character = player.Character if not character then return end local hrp = character:FindFirstChild("HumanoidRootPart") if not hrp then return end if originalSizes[player] then hrp.Size = originalSizes[player] originalSizes[player] = nil end if hitboxBoxes[player] then hitboxBoxes[player]:Destroy() hitboxBoxes[player] = nil end end local function enableHitboxes() for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer then increaseHitbox(player) end end end local function disableHitboxes() for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer then restoreHitbox(player) end end end button.MouseButton1Click:Connect(function() hitboxEnabled = not hitboxEnabled if hitboxEnabled then enableHitboxes() else disableHitboxes() end end) Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function() wait(1) if hitboxEnabled and player ~= LocalPlayer then increaseHitbox(player) end end) end) Players.PlayerRemoving:Connect(function(player) restoreHitbox(player) end)