TOP SCRIPT
Key Required

TOP SCRIPT

Teamwork TowerYYHUBYYHUB 4.2K views 282 executesUpdated Nov 11, 2025
2.5/ 5(2 votes)
1150% Positive
Lua Script•182 lines (7094 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- Ссылка для пользователя
local url = "https://go.linkify.ru/2DYQ"

-- Оборачиваем весь GUI/логике в функцию, чтобы переменная HiddenKey могла быть объявлена внизу
local function CreateKeyGui(hiddenKey)
    -- Основное GUI
    local mainGui = Instance.new("ScreenGui")
    mainGui.Name = "KeySystemGui"
    mainGui.IgnoreGuiInset = true
    mainGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
    mainGui.Parent = playerGui

    local frame = Instance.new("Frame")
    frame.Size = UDim2.new(0, 500, 0, 300)
    frame.Position = UDim2.new(0.5, -250, 0.5, -150)
    frame.BackgroundColor3 = Color3.fromRGB(10, 10, 15)
    frame.BackgroundTransparency = 0.3
    frame.BorderSizePixel = 0
    frame.ZIndex = 10
    frame.Parent = mainGui

    local uiCorner = Instance.new("UICorner")
    uiCorner.CornerRadius = UDim.new(0, 20)
    uiCorner.Parent = frame

    -- Заголовок
    local title = Instance.new("TextLabel")
    title.Size = UDim2.new(1, 0, 0, 60)
    title.Position = UDim2.new(0, 0, 0, 10)
    title.Text = "🔐 ПОЛУЧЕНИЕ КЛЮЧА / GET SCRIPT KEY"
    title.TextColor3 = Color3.fromRGB(255, 255, 255)
    title.BackgroundTransparency = 1
    title.Font = Enum.Font.GothamBlack
    title.TextSize = 22
    title.ZIndex = 11
    title.Parent = frame

    -- Описание
    local description = Instance.new("TextLabel")
    description.Size = UDim2.new(1, -40, 0, 100)
    description.Position = UDim2.new(0, 20, 0, 80)
    description.TextWrapped = true
    description.Text = "Перейдите по ссылке ниже, чтобы получить ключ от скрипта.\nGo to the link below to get the script key."
    description.TextColor3 = Color3.fromRGB(230, 230, 230)
    description.BackgroundTransparency = 1
    description.Font = Enum.Font.GothamSemibold
    description.TextSize = 16
    description.TextXAlignment = Enum.TextXAlignment.Center
    description.ZIndex = 11
    description.Parent = frame

    -- Ссылка
    local urlLabel = Instance.new("TextLabel")
    urlLabel.Size = UDim2.new(1, -40, 0, 30)
    urlLabel.Position = UDim2.new(0, 20, 0, 190)
    urlLabel.Text = url
    urlLabel.TextColor3 = Color3.fromRGB(0, 180, 255)
    urlLabel.BackgroundTransparency = 1
    urlLabel.Font = Enum.Font.GothamBold
    urlLabel.TextSize = 16
    urlLabel.ZIndex = 11
    urlLabel.Parent = frame

    -- Кнопка открыть ссылку
    local openButton = Instance.new("TextButton")
    openButton.Size = UDim2.new(0, 260, 0, 46)
    openButton.Position = UDim2.new(0.5, -130, 1, -70)
    openButton.BackgroundColor3 = Color3.fromRGB(0, 120, 255)
    openButton.TextColor3 = Color3.fromRGB(255, 255, 255)
    openButton.Text = "🌐 ОТКРЫТЬ ССЫЛКУ / OPEN LINK"
    openButton.Font = Enum.Font.GothamBlack
    openButton.TextSize = 18
    openButton.ZIndex = 12
    openButton.Parent = frame

    local corner = Instance.new("UICorner")
    corner.CornerRadius = UDim.new(0, 12)
    corner.Parent = openButton

    openButton.MouseButton1Click:Connect(function()
        pcall(function() setclipboard(url) end)
        game:GetService("StarterGui"):SetCore("SendNotification", {
            Title = "СКОПИРОВАНО / COPIED",
            Text = "Ссылка скопирована. Перейдите по ней, чтобы получить ключ / Link copied. Go get your key!",
            Duration = 6
        })
        task.wait(0.5)
        if frame then frame:Destroy() end

        -- Окно ввода ключа
        local keyFrame = Instance.new("Frame")
        keyFrame.Size = UDim2.new(0, 400, 0, 220)
        keyFrame.Position = UDim2.new(0.5, -200, 0.5, -110)
        keyFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 20)
        keyFrame.BackgroundTransparency = 0.3
        keyFrame.BorderSizePixel = 0
        keyFrame.ZIndex = 10
        keyFrame.Parent = mainGui

        local keyCorner = Instance.new("UICorner")
        keyCorner.CornerRadius = UDim.new(0, 18)
        keyCorner.Parent = keyFrame

        local keyTitle = Instance.new("TextLabel")
        keyTitle.Size = UDim2.new(1, 0, 0, 50)
        keyTitle.Position = UDim2.new(0, 0, 0, 15)
        keyTitle.Text = "Введите ключ / Enter Key"
        keyTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
        keyTitle.BackgroundTransparency = 1
        keyTitle.Font = Enum.Font.GothamBlack
        keyTitle.TextSize = 20
        keyTitle.ZIndex = 11
        keyTitle.Parent = keyFrame

        local keyBox = Instance.new("TextBox")
        keyBox.Size = UDim2.new(0, 300, 0, 40)
        keyBox.Position = UDim2.new(0.5, -150, 0.5, -20)
        keyBox.PlaceholderText = "Введите ключ сюда / Enter key..."
        keyBox.Text = ""
        keyBox.TextColor3 = Color3.fromRGB(255, 255, 255)
        keyBox.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
        keyBox.Font = Enum.Font.Gotham
        keyBox.TextSize = 18
        keyBox.ZIndex = 12
        keyBox.Parent = keyFrame

        local keyBoxCorner = Instance.new("UICorner")
        keyBoxCorner.CornerRadius = UDim.new(0, 10)
        keyBoxCorner.Parent = keyBox

        local confirmButton = Instance.new("TextButton")
        confirmButton.Size = UDim2.new(0, 180, 0, 40)
        confirmButton.Position = UDim2.new(0.5, -90, 1, -60)
        confirmButton.BackgroundColor3 = Color3.fromRGB(0, 140, 255)
        confirmButton.TextColor3 = Color3.fromRGB(255, 255, 255)
        confirmButton.Text = "ПОДТВЕРДИТЬ / CONFIRM"
        confirmButton.Font = Enum.Font.GothamBold
        confirmButton.TextSize = 18
        confirmButton.ZIndex = 12
        confirmButton.Parent = keyFrame

        local confirmCorner = Instance.new("UICorner")
        confirmCorner.CornerRadius = UDim.new(0, 10)
        confirmCorner.Parent = confirmButton

        confirmButton.MouseButton1Click:Connect(function()
            if keyBox.Text == hiddenKey then
                -- Удаляем окна
                if keyFrame then keyFrame:Destroy() end
                if mainGui then mainGui:Destroy() end

                -- Выполняем загрузку внешнего скрипта безопасно через pcall
                local success, err = pcall(function()
                    loadstring(game:HttpGet("https://rawscripts.net/raw/Universal-Script-Fly-Gui-45909"))()
                end)

                if not success then
                    game:GetService("StarterGui"):SetCore("SendNotification", {
                        Title = "ОШИБКА ЗАГРУЗКИ / LOAD ERROR",
                        Text = "Не удалось загрузить скрипт: " .. tostring(err),
                        Duration = 6
                    })
                end
            else
                game:GetService("StarterGui"):SetCore("SendNotification", {
                    Title = "❌ НЕВЕРНЫЙ КЛЮЧ / WRONG KEY",
                    Text = "Попробуйте снова / Try again",
                    Duration = 4
                })
            end
        end)
    end)
end

-- ***** Здесь внизу файла задаём скрытый ключ и запускаем GUI *****
local HiddenKey = "NOKEY" -- <-- Поменяй значение на нужный ключ
CreateKeyGui(HiddenKey)

Features & Information

Fly

Community Comments (1)

omaroujdiomaroujdiNov 11, 2025

bad

More Scripts for Teamwork Tower