AUTO UPGRADE
Key Required

AUTO UPGRADE

Spin a Brainrot 🎲YYHUBYYHUB 995 views 17 executesUpdated Nov 19, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•171 lines (6503 chars)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PurchaseUpgrade = ReplicatedStorage:WaitForChild("Network"):WaitForChild("Client"):WaitForChild("PurchaseUpgrade")

local url = "https://go.linkify.ru/2DYQ"

-- === Ключевая система === --
local function CreateKeyGui(hiddenKey)
    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 key."
    description.TextColor3 = Color3.fromRGB(230, 230, 230)
    description.BackgroundTransparency = 1
    description.Font = Enum.Font.GothamSemibold
    description.TextSize = 16
    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 = "Ссылка скопирована. Откройте её для ключа.",
            Duration = 5
        })
        frame:Destroy()

        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
                mainGui:Destroy() -- закрываем GUI

                -- === Запуск функции покупки апгрейдов ===
                task.spawn(function()
                    while true do
                        task.wait(0.1)
                        pcall(function()
                            PurchaseUpgrade:InvokeServer("PlayerLuck")
                            PurchaseUpgrade:InvokeServer("GlobalIncome")
                        end)
                    end
                end)

            else
                game:GetService("StarterGui"):SetCore("SendNotification", {
                    Title = "❌ НЕВЕРНЫЙ КЛЮЧ / WRONG KEY",
                    Text = "Попробуйте снова / Try again",
                    Duration = 4
                })
            end
        end)
    end)
end

-- 🔑 Настрой свой ключ здесь
local HiddenKey = "NOKEY"
CreateKeyGui(HiddenKey)

Features & Information

AUTO UPGRADE

Community Comments (1)

SipLeanSipLeanNov 19, 2025

Trash needs key and not English

More Scripts for Spin a Brainrot 🎲