------------------------------------------------
-- 1. LOAD THE LIBRARY
------------------------------------------------
local RedLib = require(game.ReplicatedStorage:WaitForChild("RedLib"))
------------------------------------------------
-- 2. KEY SYSTEM UI
------------------------------------------------
local CORRECT_KEY = "MY-SECRET-KEY-123" -- change this
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
local KeyGui = Instance.new("ScreenGui")
KeyGui.Name = "KeySystem"
KeyGui.ResetOnSpawn = false
KeyGui.Parent = PlayerGui
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 360, 0, 160)
Frame.Position = UDim2.new(0.5, -180, 0.5, -80)
Frame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
Frame.BorderSizePixel = 0
Frame.Parent = KeyGui
Instance.new("UICorner", Frame).CornerRadius = UDim.new(0, 10)
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, -20, 0, 30)
Title.Position = UDim2.new(0, 10, 0, 10)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBold
Title.TextSize = 18
Title.Text = "Enter Key"
Title.TextColor3 = Color3.fromRGB(255, 80, 80)
Title.TextXAlignment = Enum.TextXAlignment.Left
Title.Parent = Frame
local KeyBox = Instance.new("TextBox")
KeyBox.Size = UDim2.new(1, -20, 0, 35)
KeyBox.Position = UDim2.new(0, 10, 0, 50)
KeyBox.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
KeyBox.TextColor3 = Color3.fromRGB(255, 255, 255)
KeyBox.Font = Enum.Font.Gotham
KeyBox.TextSize = 14
KeyBox.PlaceholderText = "Paste key here"
KeyBox.ClearTextOnFocus = false
KeyBox.Parent = Frame
Instance.new("UICorner", KeyBox).CornerRadius = UDim.new(0, 6)
local Submit = Instance.new("TextButton")
Submit.Size = UDim2.new(0, 130, 0, 30)
Submit.Position = UDim2.new(0, 10, 0, 95)
Submit.BackgroundColor3 = Color3.fromRGB(150, 0, 0)
Submit.TextColor3 = Color3.fromRGB(255, 255, 255)
Submit.Font = Enum.Font.Gotham
Submit.Text = "Submit"
Submit.TextSize = 14
Submit.Parent = Frame
Instance.new("UICorner", Submit).CornerRadius = UDim.new(0, 6)
local Status = Instance.new("TextLabel")
Status.Size = UDim2.new(1, -20, 0, 20)
Status.Position = UDim2.new(0, 10, 0, 135)
Status.BackgroundTransparency = 1
Status.Font = Enum.Font.Gotham
Status.TextSize = 12
Status.Text = ""
Status.TextColor3 = Color3.fromRGB(255, 80, 80)
Status.TextXAlignment = Enum.TextXAlignment.Left
Status.Parent = Frame
------------------------------------------------
-- 3. OPEN WINDOW (NOTHING INSIDE)
------------------------------------------------
local function OpenHub()
KeyGui:Destroy()
local Window = RedLib:CreateWindow({
Name = "Dark Red Hub",
Size = Vector2.new(520, 340)
})
end
------------------------------------------------
-- 4. KEY CHECK
------------------------------------------------
local function TryKey()
if KeyBox.Text == CORRECT_KEY then
Status.Text = "Correct key... loading!"
task.wait(0.4)
OpenHub()
else
Status.Text = "Invalid key."
end
end
Submit.MouseButton1Click:Connect(TryKey)
KeyBox.FocusLost:Connect(function(enter)
if enter then TryKey() end
end)
-- TABS (put this right after the Window = RedLib:CreateWindow({...}))
local MainTab = Window:CreateTab("Main")
local PlayerTab = Window:CreateTab("Player")
local MiscTab = Window:CreateTab("Misc")
To embed this project on your website, copy the following code and paste it into your website's HTML: