-- [[ Xeno Executor Compatible: Key System for Starters]] --
local Players = game:GetService("Players")
local CoreGui = game:GetService("CoreGui")
local player = Players.LocalPlayer
--Config
local DISCORD_LINK = "https://discord.com/invite/cJVDgX4pSJ" -- Put your Discord or Key link here
local validKeys = {
["Made-by-Buttershot-/-umuta-on-Xeno-Scripts"] = true, --your key here
}
--ScreenGui
local keyGui = Instance.new("ScreenGui")
keyGui.Name = "Xeno_Glitch_Auth"
keyGui.ResetOnSpawn = false
local function getSafeParent()
local success, result = pcall(function() return CoreGui end)
return (success and result) or player:WaitForChild("PlayerGui")
end
keyGui.Parent = getSafeParent()
--Main
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 360, 0, 260) -- Slightly taller for the extra button
mainFrame.Position = UDim2.new(0.5, -180, 0.5, -130)
mainFrame.BackgroundColor3 = Color3.fromRGB(12, 12, 14)
mainFrame.BackgroundTransparency = 0.15
mainFrame.BorderSizePixel = 0
mainFrame.Parent = keyGui
local uiStroke = Instance.new("UIStroke")
uiStroke.Thickness = 2.5
uiStroke.Parent = mainFrame
--Rainbow
task.spawn(function()
local hue = 0
while task.wait() do
hue = hue + (1/400)
uiStroke.Color = Color3.fromHSV(hue % 1, 0.7, 1)
end
end)
Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 10)
--Title
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, 0, 0, 50)
title.BackgroundTransparency = 1
title.Text = "Key System"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Font = Enum.Font.Code
title.TextSize = 18
title.Parent = mainFrame
--Key Input
local keyInput = Instance.new("TextBox")
keyInput.Size = UDim2.new(0, 300, 0, 45)
keyInput.Position = UDim2.new(0.5, -150, 0.35, 0)
keyInput.BackgroundColor3 = Color3.fromRGB(25, 25, 30)
keyInput.TextColor3 = Color3.fromRGB(255, 255, 255)
keyInput.PlaceholderText = "Enter Key..."
keyInput.Text = ""
keyInput.Font = Enum.Font.SourceSans
keyInput.TextSize = 16
keyInput.Parent = mainFrame
Instance.new("UICorner", keyInput)
--GET KEY
local getKeyBtn = Instance.new("TextButton")
getKeyBtn.Size = UDim2.new(0, 145, 0, 40)
getKeyBtn.Position = UDim2.new(0.5, -150, 0.75, 0)
getKeyBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 45)
getKeyBtn.Text = "GET KEY"
getKeyBtn.TextColor3 = Color3.fromRGB(200, 200, 200)
getKeyBtn.Font = Enum.Font.GothamBold
getKeyBtn.TextSize = 13
getKeyBtn.Parent = mainFrame
Instance.new("UICorner", getKeyBtn)
--LOGIN
local loginBtn = Instance.new("TextButton")
loginBtn.Size = UDim2.new(0, 145, 0, 40)
loginBtn.Position = UDim2.new(0.5, 5, 0.75, 0)
loginBtn.BackgroundColor3 = Color3.fromRGB(0, 255, 170)
loginBtn.Text = "LOGIN"
loginBtn.TextColor3 = Color3.fromRGB(10, 10, 10)
loginBtn.Font = Enum.Font.GothamBold
loginBtn.TextSize = 13
loginBtn.Parent = mainFrame
Instance.new("UICorner", loginBtn)
--Status
local status = Instance.new("TextLabel")
status.Size = UDim2.new(1, 0, 0, 25)
status.Position = UDim2.new(0, 0, 0.58, 0)
status.BackgroundTransparency = 1
status.TextColor3 = Color3.fromRGB(180, 180, 180)
status.Text = "Verification Required"
status.Font = Enum.Font.Code
status.TextSize = 12
status.Parent = mainFrame
--Get Key (Copy to Clipboard)
getKeyBtn.MouseButton1Click:Connect(function()
if setclipboard then
setclipboard(DISCORD_LINK)
status.TextColor3 = Color3.fromRGB(255, 255, 255)
status.Text = "Link copied to clipboard!"
else
status.Text = "Manual: " .. DISCORD_LINK
end
end)
--Login
loginBtn.MouseButton1Click:Connect(function()
if validKeys[keyInput.Text] then
status.TextColor3 = Color3.fromRGB(0, 255, 150)
status.Text = "Access Granted. Loading..."
task.wait(1)
keyGui:Destroy()
loadstring(game:HttpGet("your_script"))()
else
status.TextColor3 = Color3.fromRGB(255, 100, 100)
status.Text = "Invalid Key!"
keyInput.Text = ""
end
end)