-- Essential Services
local HttpService = game:GetService("HttpService")

-- Configuration (Changed filename to avoid string-hiding blocks)
local keyFile = "nwrkinghgh.txt"
local correctKey = "NWR"
local keyDuration = 86400

-- Game Script Mapping (Ensured string keys match tostring PlaceId)
local GameScripts = {
    ["130247632398296"] = "https://[Log in to view URL]",
    ["90462358603255"]  = "https://[Log in to view URL]",
    ["13127800756"]     = "https://[Log in to view URL]",
    ["75992362647444"]  = "https://[Log in to view URL]",
    ["5041144419"]  = "https://[Log in to view URL]",
}

-- Load Fluent UI Library
local Success, Library = pcall(function()
    return loadstring(game:HttpGet("https://[Log in to view URL]"))()
end)

if not Success or not Library then return end

local function loadGameScript()
    local currentId = tostring(game.PlaceId)
    local scriptUrl = GameScripts[currentId]
    
    if scriptUrl and scriptUrl ~= "" then
        Library:Notify({ Title = "NWR Hub", Content = "Loading Game Script...", Duration = 3 })
        task.spawn(function()
            local s, res = pcall(function()
                return loadstring(game:HttpGet(scriptUrl))()
            end)
            if not s then warn("Script Error: " .. res) end
        end)
    else
        Library:Notify({ Title = "Unsupported", Content = "Game not supported.", Duration = 5 })
    end
end

-- Key Logic
local function hasKey()
    if not isfile(keyFile) then return false end
    local success, data = pcall(readfile, keyFile)
    if not success then return false end
    
    local savedKey, savedTime = data:match("^(.-)\n(.-)$")
    return savedKey == correctKey and (os.time() - (tonumber(savedTime) or 0)) < keyDuration
end

if hasKey() then
    loadGameScript()
    return
end

-- UI Setup
local Window = Library:Window({
    Title = "Verification System",
    SubTitle = "NWR's Hub",
    TabWidth = 160,
    Size = UDim2.fromOffset(580, 460),
    Acrylic = true,
    Theme = "Darker",
})

local Tabs = { Key = Window:AddTab({ Title = "Key", Icon = "key" }) }
local VerificationSection = Tabs.Key:Section("Key System")

local KeyInput = VerificationSection:Input("KeyInput", {
    Title = "Enter Key",
    Placeholder = "...",
})

VerificationSection:Button({
    Title = "Check Key",
    Callback = function()
        if KeyInput.Value == correctKey then
            writefile(keyFile, correctKey .. "\n" .. tostring(os.time()))
            Library:Notify({ Title = "Success", Content = "Key Valid!", Duration = 3 })
            task.wait(0.5)
            Window:Destroy()
            loadGameScript()
        else
            Library:Notify({ Title = "Error", Content = "Invalid Key!", Duration = 3 })
        end
    end
})

VerificationSection:Button({
    Title = "Copy Discord Link",
    Callback = function()
        setclipboard("https://[Log in to view URL]")
        Library:Notify({ Title = "Copied", Content = "Link added to clipboard.", Duration = 3 })
    end
})

Embed on website

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