--// Key System \\--

local pastebinURL = "https://[Log in to view URL]" -- Replace with your Pastebin raw URL
local enteredKey = ""

-- Function to fetch the correct key from Pastebin
local function fetchKey()
    local success, response = pcall(function()
        return game:HttpGet(pastebinURL)
    end)
    return success and response or nil
end

local correctKey = fetchKey()

if not correctKey then
    error("Failed to fetch the correct key. Check your Pastebin URL.")
end

-- Orion Library UI
local OrionLib = loadstring(game:HttpGet(('https://[Log in to view URL]')))()
local Window = OrionLib:MakeWindow({Name = "Key System", HidePremium = false, IntroEnabled = false})

local Tab = Window:MakeTab({
	Name = "Key",
	Icon = "rbxassetid://4483345998",
	PremiumOnly = false
})

Tab:AddTextbox({
	Name = "Enter Key",
	Default = "",
	TextDisappear = false,
	Callback = function(value)
		enteredKey = value
	end
})

Tab:AddButton({
	Name = "Submit Key",
	Callback = function()
		if enteredKey == correctKey then
			OrionLib:MakeNotification({
				Name = "Success",
				Content = "Key is correct!",
				Image = "rbxassetid://4483345998",
				Time = 5
			})
			-- Load your script here after key validation
			Window:Destroy()
			loadstring(game:HttpGet("https://[Log in to view URL]"))()
		else
			OrionLib:MakeNotification({
				Name = "Error",
				Content = "Invalid key, please try again.",
				Image = "rbxassetid://4483345998",
				Time = 5
			})
		end
	end
})

OrionLib:Init()

Embed on website

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