Hitbox
Key RequiredUniversal

Hitbox

Universal ScriptAkage_JPNAkage_JPN 512 views 200 executesUpdated Jan 10, 2026
2.5/ 5(2 votes)
1150% Positive
Lua Script•194 lines (5703 chars)
--[[
Useless Hitbox GUI (LocalScript)
・小型GUI
・ドラッグ移動
・最小化(丸ボタン対応)
・Normalでも動かなくならない
・スマホ操作対応
・Normal = 1.5
・特定プレイヤー除外
・Smart Vehicle:乗り物に乗っている人だけNormal化
]]

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer

-- 対象外プレイヤー
local excludedPlayer = "Vocaloid_fandayo"

-- モード管理
local smartVehicle = false

-- ===== Hitbox 処理 =====
_G.HeadSize = 1.5
_G.Disabled = true

if _G._HitboxConn then
	_G._HitboxConn:Disconnect()
end

_G._HitboxConn = RunService.RenderStepped:Connect(function()
	if not _G.Disabled then return end
	for _, v in ipairs(Players:GetPlayers()) do
		if v ~= LocalPlayer and v.Name ~= excludedPlayer and v.Character then
			local hrp = v.Character:FindFirstChild("HumanoidRootPart")
			local hum = v.Character:FindFirstChildOfClass("Humanoid")
			if hrp and hum then
				pcall(function()
					-- 乗り物判定(Seat / VehicleSeat)
					local inVehicle = hum.SeatPart ~= nil

					local size = _G.HeadSize
					-- Smart Vehicle 有効時:乗り物中は Normal 扱い
					if smartVehicle and inVehicle then
						size = 1.5
					end

					hrp.Size = Vector3.new(size, size, size)
					hrp.Transparency = 0.7
					hrp.BrickColor = BrickColor.new("Really red")
					hrp.Material = Enum.Material.Neon
					hrp.CanCollide = (size <= 1.5)
				end)
			end
		end
	end
end)

-- ===== GUI =====
local gui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
gui.Name = "UselessHitboxGUI"
gui.ResetOnSpawn = false

local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 200, 0, 200)
frame.Position = UDim2.fromScale(0.05, 0.05)
frame.BackgroundColor3 = Color3.fromRGB(28, 28, 28)
frame.BorderSizePixel = 0
frame.Active = true

local corner = Instance.new("UICorner", frame)
corner.CornerRadius = UDim.new(0, 14)

-- タイトルバー
local titleBar = Instance.new("Frame", frame)
titleBar.Size = UDim2.new(1, 0, 0, 32)
titleBar.BackgroundTransparency = 1

local title = Instance.new("TextLabel", titleBar)
title.Size = UDim2.new(1, -40, 1, 0)
title.Position = UDim2.new(0, 10, 0, 0)
title.BackgroundTransparency = 1
title.Text = "Hitbox Expander v2🇯🇵"
title.TextColor3 = Color3.new(1,1,1)
title.Font = Enum.Font.GothamBold
title.TextSize = 16
title.TextXAlignment = Enum.TextXAlignment.Left

-- 最小化
local minimizeBtn = Instance.new("TextButton", titleBar)
minimizeBtn.Size = UDim2.new(0, 28, 0, 28)
minimizeBtn.Position = UDim2.new(1, -34, 0, 2)
minimizeBtn.Text = "−"
minimizeBtn.Font = Enum.Font.GothamBold
minimizeBtn.TextSize = 18
minimizeBtn.TextColor3 = Color3.new(1,1,1)
minimizeBtn.BackgroundColor3 = Color3.fromRGB(70,70,70)
Instance.new("UICorner", minimizeBtn).CornerRadius = UDim.new(0,8)

-- ボタン領域
local content = Instance.new("Frame", frame)
content.Position = UDim2.new(0, 0, 0, 32)
content.Size = UDim2.new(1, 0, 1, -32)
content.BackgroundTransparency = 1

-- ===== ドラッグ =====
local dragging, dragStart, startPos = false

titleBar.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = frame.Position
	end
end)

titleBar.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = false
	end
end)

UserInputService.InputChanged:Connect(function(input)
	if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
		local delta = input.Position - dragStart
		frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
	end
end)

-- ===== 最小化(丸ボタン) =====
local miniBtn = Instance.new("TextButton", gui)
miniBtn.Size = UDim2.new(0, 42, 0, 42)
miniBtn.Position = UDim2.fromScale(0.05, 0.05)
miniBtn.Text = "⚙️"
miniBtn.Font = Enum.Font.GothamBold
miniBtn.TextSize = 14
miniBtn.TextColor3 = Color3.new(1,1,1)
miniBtn.BackgroundColor3 = Color3.fromRGB(70,70,70)
miniBtn.Visible = false
miniBtn.Active = true
Instance.new("UICorner", miniBtn).CornerRadius = UDim.new(1,0)

minimizeBtn.MouseButton1Click:Connect(function()
	content.Visible = false
	frame.Visible = false
	miniBtn.Visible = true
end)

miniBtn.MouseButton1Click:Connect(function()
	frame.Visible = true
	content.Visible = true
	miniBtn.Visible = false
end)

-- ===== ボタン =====
local buttons = {
	{Text = "Normal", Size = 1.5},
	{Text = "Expand", Size = 7},
	{Text = "Big", Size = 15},
}

for i, cfg in ipairs(buttons) do
	local btn = Instance.new("TextButton", content)
	btn.Size = UDim2.new(1, -24, 0, 32)
	btn.Position = UDim2.new(0, 12, 0, 10 + (i-1)*36)
	btn.Text = cfg.Text
	btn.Font = Enum.Font.Gotham
	btn.TextSize = 14
	btn.TextColor3 = Color3.new(1,1,1)
	btn.BackgroundColor3 = Color3.fromRGB(60,60,60)
	Instance.new("UICorner", btn).CornerRadius = UDim.new(0,10)
	btn.MouseButton1Click:Connect(function()
		smartVehicle = false
		_G.HeadSize = cfg.Size
	end)
end

-- Smart Vehicle ボタン
local smartBtn = Instance.new("TextButton", content)
smartBtn.Size = UDim2.new(1, -24, 0, 32)
smartBtn.Position = UDim2.new(0, 12, 0, 10 + (#buttons)*36)
smartBtn.Text = "Smart Vehicle"
smartBtn.Font = Enum.Font.GothamBold
smartBtn.TextSize = 14
smartBtn.TextColor3 = Color3.new(1,1,1)
smartBtn.BackgroundColor3 = Color3.fromRGB(80,90,120)
Instance.new("UICorner", smartBtn).CornerRadius = UDim.new(0,10)

smartBtn.MouseButton1Click:Connect(function()
	smartVehicle = not smartVehicle
	-- 見た目でON/OFF分かるように
	smartBtn.BackgroundColor3 = smartVehicle and Color3.fromRGB(60,120,60) or Color3.fromRGB(80,90,120)
end)

Features & Information

For friend
#Vocaloidfandayo

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts