Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local KeyGuardLibrary = loadstring(game:HttpGet("https://cdn.keyguardian.org/library/v1.0.0.lua"))()
- -- Define your true and false data
- local trueData = "4f801f8d8c784c2dab1d6eb36798b6ef"
- local falseData = "ae3489cf076346acbcc5676ff35bbc23"
- -- Initialize KeyGuard with the tokens and data
- KeyGuardLibrary.Set({
- publicToken = "b21b716cc5054b499e925c99a61bc671",
- privateToken = "de168967445d4680994f08e06aa3ad67",
- trueData = trueData,
- falseData = falseData,
- })
- -- Create the minimal GUI elements
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer.PlayerGui
- -- Frame for the UI
- local frame = Instance.new("Frame")
- frame.Parent = screenGui
- frame.Size = UDim2.new(0, 250, 0, 60) -- Compact size for aesthetic look
- frame.AnchorPoint = Vector2.new(0.5, 0.5) -- Center the frame based on anchor
- frame.Position = UDim2.new(0.5, 0, 0.50, 0) -- Adjusted to move slightly higher
- frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- frame.BorderSizePixel = 0
- frame.BackgroundTransparency = 0.2
- frame.ClipsDescendants = true -- Hide anything that overflows the frame
- -- Create a UICorner to round the corners of the frame
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 12) -- Round corners
- corner.Parent = frame
- -- Input Box for entering the key
- local inputBox = Instance.new("TextBox")
- inputBox.Parent = frame
- inputBox.Size = UDim2.new(0, 230, 0, 30) -- Slightly smaller size to keep it compact
- inputBox.Position = UDim2.new(0, 10, 0, 15)
- inputBox.Text = ""
- inputBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- inputBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- inputBox.TextSize = 16
- inputBox.ClearTextOnFocus = true
- inputBox.TextXAlignment = Enum.TextXAlignment.Left
- inputBox.TextYAlignment = Enum.TextYAlignment.Center
- inputBox.TextWrapped = false -- No wrapping
- inputBox.TextTruncate = Enum.TextTruncate.AtEnd -- Hide overflow text
- -- Add a subtle glow effect to the text box (focus)
- inputBox.FocusLost:Connect(function()
- if inputBox.Text == "" then
- inputBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- else
- inputBox.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- end
- end)
- -- Border effect on hover (for interactivity)
- inputBox.MouseEnter:Connect(function()
- inputBox.BorderSizePixel = 2
- inputBox.BorderColor3 = Color3.fromRGB(0, 255, 0) -- Green on hover
- end)
- inputBox.MouseLeave:Connect(function()
- inputBox.BorderSizePixel = 0
- end)
- -- Directly validate the key when the script runs
- local response = KeyGuardLibrary.validatePremiumKey(key)
- if response == trueData then
- print("Key is valid")
- wait(5) -- Optionally add a delay before destroying the GUI
- screenGui:Destroy() -- Destroy the GUI
- else
- print("Key is invalid")
- end
Advertisement
Add Comment
Please, Sign In to add comment