J Aja H3 C F
J Aja H3 C F
WARNING: --[[
WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your
own risk!
]]
--Made By Alexis.isback00
--Denme creditos :v
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local uis = game:GetService("UserInputService")
local tweenService = game:GetService("TweenService")
-- GUI Settings
local gui = Instance.new("ScreenGui")
gui.Parent = player.PlayerGui
-- Hitbox Settings
local headSize = 17
local minHeadSize = 5
local maxHeadSize = 60
-- Animation Settings
local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear,
Enum.EasingDirection.Out)
local openPosition = UDim2.new(0.5, -100, 0.5, -125)
local closedPosition = UDim2.new(0.5, -100, -1, 0)
-- Script
openButton.MouseButton1Click:Connect(function()
mainFrame.Visible = not mainFrame.Visible
closeButton.MouseButton1Click:Connect(function()
mainFrame.Visible = false
end)
toggleButton.MouseButton1Click:Connect(function()
hitboxEnabled = not hitboxEnabled
if hitboxEnabled then
expandHitbox()
else
resetHitbox()
end
end)
expandButton.MouseButton1Click:Connect(function()
headSize = math.min(maxHeadSize, headSize + 5)
expandHitbox()
end)
decreaseButton.MouseButton1Click:Connect(function()
headSize = math.max(minHeadSize, headSize - 5)
decreaseHitbox()
end)
function expandHitbox()
for _, v in ipairs(game.Players:GetPlayers()) do
if v.Name ~= player.Name then
pcall(function()
local character = v.Character
if character and character:FindFirstChild("HumanoidRootPart") then
local humanoidRootPart = character.HumanoidRootPart
humanoidRootPart.Size = Vector3.new(headSize, headSize,
headSize)
humanoidRootPart.Transparency = 0.7
humanoidRootPart.BrickColor = BrickColor.new("Bright red")
humanoidRootPart.Material = "Neon"
humanoidRootPart.CanCollide = false
end
end)
end
end
end
function decreaseHitbox()
for _, v in ipairs(game.Players:GetPlayers()) do
if v.Name ~= player.Name then
pcall(function()
local character = v.Character
if character and character:FindFirstChild("HumanoidRootPart") then
local humanoidRootPart = character.HumanoidRootPart
humanoidRootPart.Size = Vector3.new(headSize, headSize,
headSize)
humanoidRootPart.Transparency = 0.7
humanoidRootPart.BrickColor = BrickColor.new("Bright red")
humanoidRootPart.Material = "Neon"
humanoidRootPart.CanCollide = false
end
end)
end
end
end
function resetHitbox()
for _, v in ipairs(game.Players:GetPlayers()) do
if v.Name ~= player.Name then
pcall(function()
local character = v.Character
if character and character:FindFirstChild("HumanoidRootPart") then
local humanoidRootPart = character.HumanoidRootPart
humanoidRootPart.Size = Vector3.new(headSize, headSize,
headSize)
humanoidRootPart.Transparency = 1
humanoidRootPart.BrickColor = BrickColor.new("Bright red")
humanoidRootPart.Material = "Neon"
humanoidRootPart.CanCollide = false
end
end)
end
end
end
uis.InputBegan:Connect(function(input, processed)
if not processed then
local delta = input.Position - mainFrame.Position
local dragging
uis.InputChanged:Connect(updateDrag)
uis.InputEnded:Connect(stopDrag)
end
end
end)