ESTRA ESTRA FAMOOS FAMOOS
Key RequiredUniversal

ESTRA ESTRA FAMOOS FAMOOS

Universal ScriptTRANsPoTTRANsPoT 19 views 8 executesUpdated Jul 28, 2026
Unrated
00
Lua Script•149 lines (5039 chars)
-- Создание интерфейса на ScreenGui
local CoreGui = game:GetService("CoreGui")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer

-- Удаляем старую версию, если она была
if CoreGui:FindFirstChild("HitboxGui") then
    CoreGui.HitboxGui:Destroy()
end

-- Основные настройки
local HitboxSettings = {
    Size = 10,
    Transparency = 0.5,
    CheckTeam = false,
    Enabled = true
}

-- Создание GUI элементов
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "HitboxGui"
ScreenGui.Parent = CoreGui

local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 250, 0, 220)
MainFrame.Position = UDim2.new(0.05, 0, 0.3, 0)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true -- Можно перетаскивать по экрану
MainFrame.Parent = ScreenGui

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 8)
UICorner.Parent = MainFrame

local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Text = "Hitbox Expander"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextSize = 18
Title.Font = Enum.Font.SourceSansBold
Title.BackgroundTransparency = 1
Title.Parent = MainFrame

-- Функция создания элементов управления
local function createControl(text, pos, callback)
    local Label = Instance.new("TextLabel")
    Label.Size = UDim2.new(1, -20, 0, 20)
    Label.Position = pos
    Label.Text = text
    Label.TextColor3 = Color3.fromRGB(200, 200, 200)
    Label.TextSize = 14
    Label.TextXAlignment = Enum.TextXAlignment.Left
    Label.Font = Enum.Font.SourceSans
    Label.BackgroundTransparency = 1
    Label.Parent = MainFrame

    local TextBox = Instance.new("TextBox")
    TextBox.Size = UDim2.new(0, 60, 0, 25)
    TextBox.Position = UDim2.new(1, -70, pos.Y.Scale, pos.Y.Offset - 2)
    TextBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
    TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
    TextBox.TextSize = 14
    TextBox.Font = Enum.Font.SourceSans
    TextBox.BorderSizePixel = 0
    TextBox.Parent = MainFrame
    
    local Corner = Instance.new("UICorner")
    Corner.CornerRadius = UDim.new(0, 4)
    Corner.Parent = TextBox

    TextBox.FocusLost:Connect(function()
        callback(TextBox)
    end)
    return TextBox
end

-- Ввод Размера Хитбокса
local SizeInput = createControl("Размер Хитбокса (2-50):", UDim2.new(0, 10, 0, 50), function(box)
    local val = tonumber(box.Text)
    if val then
        HitboxSettings.Size = math.clamp(val, 2, 50)
    end
    box.Text = tostring(HitboxSettings.Size)
end)
SizeInput.Text = tostring(HitboxSettings.Size)

-- Ввод Прозрачности
local TransInput = createControl("Прозрачность (0-1):", UDim2.new(0, 10, 0, 95), function(box)
    local val = tonumber(box.Text)
    if val then
        HitboxSettings.Transparency = math.clamp(val, 0, 1)
    end
    box.Text = tostring(HitboxSettings.Transparency)
end)
TransInput.Text = tostring(HitboxSettings.Transparency)

-- Кнопка Чек Тим (Team Check)
local TeamBtn = Instance.new("TextButton")
TeamBtn.Size = UDim2.new(1, -20, 0, 35)
TeamBtn.Position = UDim2.new(0, 10, 0, 145)
TeamBtn.BackgroundColor3 = Color3.fromRGB(180, 50, 50)
TeamBtn.Text = "Проверка Команды: ВЫКЛ"
TeamBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
TeamBtn.Font = Enum.Font.SourceSansBold
TeamBtn.TextSize = 14
TeamBtn.BorderSizePixel = 0
TeamBtn.Parent = MainFrame

local TeamCorner = Instance.new("UICorner")
TeamCorner.CornerRadius = UDim.new(0, 6)
TeamCorner.Parent = TeamBtn

TeamBtn.MouseButton1Click:Connect(function()
    HitboxSettings.CheckTeam = not HitboxSettings.CheckTeam
    if HitboxSettings.CheckTeam then
        TeamBtn.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
        TeamBtn.Text = "Проверка Команды: ВКЛ"
    else
        TeamBtn.BackgroundColor3 = Color3.fromRGB(180, 50, 50)
        TeamBtn.Text = "Проверка Команды: ВЫКЛ"
    end
end)

-- Логика расширения хитбоксов в реальном времени
RunService.RenderStepped:Connect(function()
    if not HitboxSettings.Enabled then return end
    
    for _, player in ipairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
            local hrp = player.Character.HumanoidRootPart
            local isTeammate = player.Team == LocalPlayer.Team
            
            -- Если включен Чек Тим и это союзник — возвращаем стандартный хитбокс
            if HitboxSettings.CheckTeam and isTeammate then
                hrp.Size = Vector3.new(2, 2, 1)
                hrp.Transparency = 1
                hrp.CanCollide = true
            else
                -- Применяем кастомные настройки для врагов/всех игроков
                hrp.Size = Vector3.new(HitboxSettings.Size, HitboxSettings.Size, HitboxSettings.Size)
                hrp.Transparency = HitboxSettings.Transparency
                hrp.CanCollide = false
            end
        end
    end
end)

Features & Information

HITBOOOOOOOOOOOXZZZ
#*

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts