-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer -- Settings local HitboxEnabled = false local HitboxSize = 10 local DefaultSize = Vector3.new(2, 2, 1) local IsMinimized = false -- ScreenGui Setup local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "HitboxExpanderGUI" ScreenGui.ResetOnSpawn = false -- Safe Parenting local parentTarget local success, _ = pcall(function() parentTarget = game:GetService("CoreGui") end) if not success or not parentTarget then parentTarget = LocalPlayer:WaitForChild("PlayerGui") end ScreenGui.Parent = parentTarget -- Main Container Frame local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 220, 0, 150) Frame.Position = UDim2.new(0.5, -110, 0.4, 0) Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Frame.BorderSizePixel = 0 Frame.Active = true Frame.Draggable = true Frame.ClipsDescendants = true Frame.Parent = ScreenGui -- Header Text: "hitbox extender by l1laqxz" local TitleLabel = Instance.new("TextLabel") TitleLabel.Size = UDim2.new(1, -30, 0, 30) TitleLabel.Position = UDim2.new(0, 0, 0, 0) TitleLabel.BackgroundColor3 = Color3.fromRGB(20, 20, 20) TitleLabel.BorderSizePixel = 0 TitleLabel.Text = " hitbox extender by l1laqxz" TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TitleLabel.TextSize = 14 TitleLabel.Font = Enum.Font.SourceSansBold TitleLabel.TextXAlignment = Enum.TextXAlignment.Left TitleLabel.Parent = Frame -- Minimize Button (-) local MinimizeButton = Instance.new("TextButton") MinimizeButton.Size = UDim2.new(0, 30, 0, 30) MinimizeButton.Position = UDim2.new(1, -30, 0, 0) MinimizeButton.BackgroundColor3 = Color3.fromRGB(20, 20, 20) MinimizeButton.BorderSizePixel = 0 MinimizeButton.Text = "-" MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255) MinimizeButton.TextSize = 16 MinimizeButton.Font = Enum.Font.SourceSansBold MinimizeButton.Parent = Frame -- Container Frame for Controls local ContentContainer = Instance.new("Frame") ContentContainer.Size = UDim2.new(1, 0, 0, 120) ContentContainer.Position = UDim2.new(0, 0, 0, 30) ContentContainer.BackgroundTransparency = 1 ContentContainer.Parent = Frame -- Toggle Button (Enabled hitbox: ON/OFF) local ToggleButton = Instance.new("TextButton") ToggleButton.Size = UDim2.new(0.9, 0, 0, 35) ToggleButton.Position = UDim2.new(0.05, 0, 0, 12) ToggleButton.BackgroundColor3 = Color3.fromRGB(180, 50, 50) ToggleButton.BorderSizePixel = 0 ToggleButton.Text = "Enabled hitbox: OFF" ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleButton.TextSize = 13 ToggleButton.Font = Enum.Font.SourceSans ToggleButton.Parent = ContentContainer -- Label for Size Input local SizeLabel = Instance.new("TextLabel") SizeLabel.Size = UDim2.new(0.9, 0, 0, 18) SizeLabel.Position = UDim2.new(0.05, 0, 0, 55) SizeLabel.BackgroundTransparency = 1 SizeLabel.Text = "hitbox size:" SizeLabel.TextColor3 = Color3.fromRGB(200, 200, 200) SizeLabel.TextSize = 12 SizeLabel.Font = Enum.Font.SourceSans SizeLabel.TextXAlignment = Enum.TextXAlignment.Left SizeLabel.Parent = ContentContainer -- Text Input Box for Size local SizeInput = Instance.new("TextBox") SizeInput.Size = UDim2.new(0.9, 0, 0, 30) SizeInput.Position = UDim2.new(0.05, 0, 0, 75) SizeInput.BackgroundColor3 = Color3.fromRGB(45, 45, 45) SizeInput.BorderSizePixel = 0 SizeInput.Text = tostring(HitboxSize) SizeInput.TextColor3 = Color3.fromRGB(255, 255, 255) SizeInput.TextSize = 13 SizeInput.Font = Enum.Font.SourceSans SizeInput.Parent = ContentContainer -- Update Function local function UpdateHitboxes() for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character then local hrp = player.Character:FindFirstChild("HumanoidRootPart") if hrp then if HitboxEnabled then hrp.Size = Vector3.new(HitboxSize, HitboxSize, HitboxSize) hrp.Transparency = 0.7 hrp.BrickColor = BrickColor.new("Really red") hrp.Material = Enum.Material.Neon hrp.CanCollide = false else hrp.Size = DefaultSize hrp.Transparency = 1 hrp.CanCollide = true end end end end end -- Toggle Hitbox Button Click Event ToggleButton.MouseButton1Click:Connect(function() HitboxEnabled = not HitboxEnabled if HitboxEnabled then ToggleButton.Text = "Enabled hitbox: ON" ToggleButton.BackgroundColor3 = Color3.fromRGB(50, 180, 50) else ToggleButton.Text = "Enabled hitbox: OFF" ToggleButton.BackgroundColor3 = Color3.fromRGB(180, 50, 50) UpdateHitboxes() end end) -- Minimize Button Click Event MinimizeButton.MouseButton1Click:Connect(function() IsMinimized = not IsMinimized if IsMinimized then ContentContainer.Visible = false Frame.Size = UDim2.new(0, 220, 0, 30) MinimizeButton.Text = "+" else ContentContainer.Visible = true Frame.Size = UDim2.new(0, 220, 0, 150) MinimizeButton.Text = "-" end end) -- Size Input Event SizeInput.FocusLost:Connect(function() local parsedSize = tonumber(SizeInput.Text) if parsedSize and parsedSize > 0 then HitboxSize = parsedSize else SizeInput.Text = tostring(HitboxSize) end end) -- Render Loop RunService.RenderStepped:Connect(function() if HitboxEnabled then UpdateHitboxes() end end)