local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()

-- Players service
local Players = game:GetService("Players")
local player = Players.LocalPlayer

-- Key system variables
local validKeys = {}
local guiEnabled = false

-- Linkvertise URL
local linkvertiseURL = "https://[Log in to view URL]"

-- Key generation function
local function generateKey()
    local characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
    local key = ""
    for i = 1, 10 do
        local randomIndex = math.random(1, #characters)
        key = key .. string.sub(characters, randomIndex, randomIndex)
    end
    return key
end

-- Assign a random key to the player
local function assignKey()
    local key = generateKey()
    validKeys[player.UserId] = key
    print("Key for player " .. player.Name .. ": " .. key)
    return key
end

-- Prompt GUI for key input
local function promptKey()
    local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
    local frame = Instance.new("Frame", screenGui)
    local textBox = Instance.new("TextBox", frame)
    local submitButton = Instance.new("TextButton", frame)
    local linkButton = Instance.new("TextButton", frame)

    -- Frame properties
    frame.Size = UDim2.new(0, 300, 0, 200)
    frame.Position = UDim2.new(0.5, -150, 0.5, -100)
    frame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)

    -- TextBox properties
    textBox.Size = UDim2.new(0, 200, 0, 50)
    textBox.Position = UDim2.new(0.5, -100, 0.3, 0)
    textBox.PlaceholderText = "Enter your key here"
    textBox.Text = ""
    textBox.BackgroundColor3 = Color3.new(1, 1, 1)

    -- Submit Button properties
    submitButton.Size = UDim2.new(0, 200, 0, 50)
    submitButton.Position = UDim2.new(0.5, -100, 0.6, 0)
    submitButton.Text = "Submit Key"
    submitButton.BackgroundColor3 = Color3.new(0.2, 1, 0.2)

    -- Link Button properties
    linkButton.Size = UDim2.new(0, 200, 0, 50)
    linkButton.Position = UDim2.new(0.5, -100, 0.8, 0)
    linkButton.Text = "Get Key (Linkvertise)"
    linkButton.BackgroundColor3 = Color3.new(0.2, 0.2, 1)

    -- Button functionality
    submitButton.MouseButton1Click:Connect(function()
        local enteredKey = textBox.Text
        if validKeys[player.UserId] and validKeys[player.UserId] == enteredKey then
            screenGui:Destroy()
            guiEnabled = true
            print("Key accepted! GUI unlocked.")
        else
            textBox.Text = "Invalid Key!"
        end
    end)

    linkButton.MouseButton1Click:Connect(function()
        game:GetService("GuiService"):OpenBrowserWindow("https://[Log in to view URL]")
    end)
end

-- Trigger key system
local function onPlayerJoin()
    assignKey()
    promptKey()
end

onPlayerJoin()

-- Rayfield Wi

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: