Universal hitbox Script
Key RequiredUniversal

Universal hitbox Script

Universal ScriptTyrone_darealestTyrone_darealest 4.3K views 714 executesUpdated Sep 15, 2025
Unrated
00
Lua Script•153 lines (5415 chars)
--[[
    WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
-- === Hitbox Changer by kisamm ===
-- Now the size updates when toggled on/off

-- === Settings ===
local HeadSize = 20
local Disabled = true 

-- === Keybinds ===
local toggleGUIBind = Enum.KeyCode.P
local toggleHitboxBind = Enum.KeyCode.H

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

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

local Frame = Instance.new("Frame", ScreenGui)
Frame.Size = UDim2.new(0, 320, 0, 230)
Frame.Position = UDim2.new(0.5, -160, 0.5, -115)
Frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
Frame.BorderSizePixel = 0
Frame.Visible = true
Frame.Draggable = true
Frame.Active = true

-- Neon outline
local UIStroke = Instance.new("UIStroke", Frame)
UIStroke.Color = Color3.fromRGB(0, 255, 255)
UIStroke.Thickness = 2
UIStroke.Transparency = 0.5

-- Title
local Title = Instance.new("TextLabel", Frame)
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Text = "Hitbox Changer"
Title.TextColor3 = Color3.fromRGB(0, 255, 255)
Title.Font = Enum.Font.Arcade
Title.TextSize = 18
Title.BackgroundTransparency = 1

-- Status
local StatusLabel = Instance.new("TextLabel", Frame)
StatusLabel.Size = UDim2.new(0.9, 0, 0.15, 0)
StatusLabel.Position = UDim2.new(0.05, 0, 0.22, 0)
StatusLabel.Text = "Status: Disabled"
StatusLabel.TextColor3 = Color3.fromRGB(255, 50, 50)
StatusLabel.Font = Enum.Font.Gotham
StatusLabel.TextSize = 14
StatusLabel.BackgroundTransparency = 1

-- Toggle button
local ToggleButton = Instance.new("TextButton", Frame)
ToggleButton.Size = UDim2.new(0.9, 0, 0.18, 0)
ToggleButton.Position = UDim2.new(0.05, 0, 0.39, 0)
ToggleButton.Text = "Enable"
ToggleButton.Font = Enum.Font.GothamBold
ToggleButton.TextSize = 16
ToggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ToggleButton.AutoButtonColor = true

-- Close button (Unload)
local CloseButton = Instance.new("TextButton", Frame)
CloseButton.Size = UDim2.new(0, 30, 0, 30)
CloseButton.Position = UDim2.new(1, -35, 0, 5)
CloseButton.Text = "✕"
CloseButton.Font = Enum.Font.Arcade
CloseButton.TextSize = 20
CloseButton.TextColor3 = Color3.fromRGB(255, 100, 100)
CloseButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
CloseButton.AutoButtonColor = true

-- === Size Settings ===
local SizeLabel = Instance.new("TextLabel", Frame)
SizeLabel.Size = UDim2.new(0.4, 0, 0.15, 0)
SizeLabel.Position = UDim2.new(0.05, 0, 0.61, 0)
SizeLabel.Text = "Size (1-50):"
SizeLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
SizeLabel.Font = Enum.Font.Gotham
SizeLabel.TextSize = 14
SizeLabel.BackgroundTransparency = 1

local SizeBox = Instance.new("TextBox", Frame)
SizeBox.Size = UDim2.new(0.4, 0, 0.15, 0)
SizeBox.Position = UDim2.new(0.5, 0, 0.61, 0)
SizeBox.Text = tostring(HeadSize)
SizeBox.TextColor3 = Color3.new(1, 1, 1)
SizeBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
SizeBox.Font = Enum.Font.Code
SizeBox.TextSize = 14
SizeBox.ClearTextOnFocus = false

-- === Bind fields ===
local BindContainer = Instance.new("Frame", Frame)
BindContainer.Size = UDim2.new(0.9, 0, 0.23, 0)
BindContainer.Position = UDim2.new(0.05, 0, 0.78, 0)
BindContainer.BackgroundTransparency = 1

-- Bind: Open/close GUI
local GUIBindLabel = Instance.new("TextLabel", BindContainer)
GUIBindLabel.Size = UDim2.new(0.6, 0, 0.4, 0)
GUIBindLabel.Text = "Open GUI:"
GUIBindLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
GUIBindLabel.Font = Enum.Font.Gotham
GUIBindLabel.TextSize = 13
GUIBindLabel.BackgroundTransparency = 1

local GUIBindBox = Instance.new("TextBox", BindContainer)
GUIBindBox.Size = UDim2.new(0.35, 0, 0.4, 0)
GUIBindBox.Position = UDim2.new(0.65, 0, 0, 0)
GUIBindBox.Text = toggleGUIBind.Name
GUIBindBox.TextColor3 = Color3.new(1, 1, 1)
GUIBindBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
GUIBindBox.Font = Enum.Font.Code
GUIBindBox.TextSize = 13
GUIBindBox.ClearTextOnFocus = false

-- Bind: Toggle hitbox
local HitboxBindLabel = Instance.new("TextLabel", BindContainer)
HitboxBindLabel.Size = UDim2.new(0.6, 0, 0.4, 0)
HitboxBindLabel.Position = UDim2.new(0, 0, 0.5, 0)
HitboxBindLabel.Text = "Toggle Hitbox:"
HitboxBindLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
HitboxBindLabel.Font = Enum.Font.Gotham
HitboxBindLabel.TextSize = 13
HitboxBindLabel.BackgroundTransparency = 1

local HitboxBindBox = Instance.new("TextBox", BindContainer)
HitboxBindBox.Size = UDim2.new(0.35, 0, 0.4, 0)
HitboxBindBox.Position = UDim2.new(0.65, 0, 0.5, 0)
HitboxBindBox.Text = toggleHitboxBind.Name
HitboxBindBox.TextColor3 = Color3.new(1, 1, 1)
HitboxBindBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
HitboxBindBox.Font = Enum.Font.Code
HitboxBindBox.TextSize = 13
HitboxBindBox.ClearTextOnFocus = false

-- === GUI Logic ===
local function updateStatus()
    StatusLabel.Text = "Status: " .. (Disabled and "Disabled" or "Enabled")
    StatusLabel.TextColor3 = Disabled and Color3.fromRGB(255, 50, 50) or Color3.fromRGB(0, 255, 0)
    ToggleButton.Text = Disabled and "Enable" or "Disable"
    ToggleButton.BackgroundColor3 = Disabled and Color3.fromRGB(80, 0, 0) or Color3.fromRGB(0, 80, 0)
end

Features & Information

Not made by me made by some russian just changed it to english https://scriptblox.com/u/scripty_guy7

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts