local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer
local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local SizeInput = Instance.new("TextBox")
local InputCorner = Instance.new("UICorner")
local ToggleButton = Instance.new("TextButton")
local ButtonCorner = Instance.new("UICorner")
local MinimizeButton = Instance.new("TextButton")
local MinimizeCorner = Instance.new("UICorner")
ScreenGui.Parent = game.CoreGui
MainFrame.Parent = ScreenGui
SizeInput.Parent = MainFrame
ToggleButton.Parent = MainFrame
MinimizeButton.Parent = MainFrame
UICorner.Parent = MainFrame
InputCorner.Parent = SizeInput
ButtonCorner.Parent = ToggleButton
MinimizeCorner.Parent = MinimizeButton
MainFrame.Size = UDim2.new(0, 160, 0, 110)
MainFrame.Position = UDim2.new(0.5, -80, 0.5, -55)
MainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
MainFrame.BorderSizePixel = 0
MainFrame.ClipsDescendants = true
MainFrame.BackgroundTransparency = 0.2
MainFrame.Visible = true
UICorner.CornerRadius = UDim.new(0, 10)
local dragDetector = Instance.new("UIDragDetector", MainFrame)
MinimizeButton.Size = UDim2.new(0, 160, 0, 20)
MinimizeButton.Position = UDim2.new(0, 0, 0, 0)
MinimizeButton.Text = "▼"
MinimizeButton.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
MinimizeCorner.CornerRadius = UDim.new(0, 10)
SizeInput.Size = UDim2.new(0, 140, 0, 25)
SizeInput.Position = UDim2.new(0, 10, 0, 25)
SizeInput.Text = "10"
SizeInput.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
SizeInput.TextColor3 = Color3.fromRGB(255, 255, 255)
InputCorner.CornerRadius = UDim.new(0, 10)
ToggleButton.Size = UDim2.new(0, 140, 0, 25)
ToggleButton.Position = UDim2.new(0, 10, 0, 55)
ToggleButton.Text = "Enable Hitbox"
ToggleButton.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ButtonCorner.CornerRadius = UDim.new(0, 10)
_G.HeadSize = tonumber(SizeInput.Text) or 10
_G.Disabled = true
local PlayerList = {}
local function UpdatePlayerList()
PlayerList = {}
for _, Player in ipairs(Players:GetPlayers()) do
if Player ~= LocalPlayer and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
table.insert(PlayerList, Player)
end
end
end
SizeInput.FocusLost:Connect(function()
local NewSize = tonumber(SizeInput.Text)
if NewSize then
_G.HeadSize = NewSize
else
SizeInput.Text = tostring(_G.HeadSize)
end
end)
ToggleButton.MouseButton1Click:Connect(function()
_G.Disabled = not _G.Disabled
ToggleButton.Text = _G.Disabled and "Enable Hitbox" or "Disable Hitbox"
if _G.Disabled then
for _, Player in ipairs(PlayerList) do
if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
local RootPart = Player.Character.HumanoidRootPart
RootPart.Size = Vector3.new(2, 2, 1)
RootPart.Transparency = 0
RootPart.BrickColor = BrickColor.new("Medium stone grey")
RootPart.Material = Enum.Material.Plastic
RootPart.CanCollide = true
end
end
end
end)
local IsMinimized = false
MinimizeButton.MouseButton1Click:Connect(function()
IsMinimized = not IsMinimized
local TargetSize = IsMinimized and UDim2.new(0, 160, 0, 20) or UDim2.new(0, 160, 0, 110)
local TweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local Tween = TweenService:Create(MainFrame, TweenInfo, {Size = TargetSize})
Tween:Play()
MinimizeButton.Text = IsMinimized and "▲" or "▼"
end)
RunService.RenderStepped:Connect(function()
if not _G.Disabled then
for _, Player in ipairs(PlayerList) do
if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
local RootPart = Player.Character.HumanoidRootPart
RootPart.Size = Vector3.new(_G.HeadSize, _G.HeadSize, _G.HeadSize)
RootPart.Transparency = 0.7
RootPart.BrickColor = BrickColor.new("Really blue")
RootPart.Material = Enum.Material.Neon
RootPart.CanCollide = false
end
end
end
end)
while true do
UpdatePlayerList()
wait(1)
end