vabalata1

Untitled

Dec 11th, 2024 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. local KeyGuardLibrary = loadstring(game:HttpGet("https://cdn.keyguardian.org/library/v1.0.0.lua"))()
  2.  
  3. -- Define your true and false data
  4. local trueData = "4f801f8d8c784c2dab1d6eb36798b6ef"
  5. local falseData = "ae3489cf076346acbcc5676ff35bbc23"
  6.  
  7. -- Initialize KeyGuard with the tokens and data
  8. KeyGuardLibrary.Set({
  9. publicToken = "b21b716cc5054b499e925c99a61bc671",
  10. privateToken = "de168967445d4680994f08e06aa3ad67",
  11. trueData = trueData,
  12. falseData = falseData,
  13. })
  14.  
  15. -- Create the minimal GUI elements
  16. local screenGui = Instance.new("ScreenGui")
  17. screenGui.Parent = game.Players.LocalPlayer.PlayerGui
  18.  
  19. -- Frame for the UI
  20. local frame = Instance.new("Frame")
  21. frame.Parent = screenGui
  22. frame.Size = UDim2.new(0, 250, 0, 60) -- Compact size for aesthetic look
  23. frame.AnchorPoint = Vector2.new(0.5, 0.5) -- Center the frame based on anchor
  24. frame.Position = UDim2.new(0.5, 0, 0.50, 0) -- Adjusted to move slightly higher
  25. frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  26. frame.BorderSizePixel = 0
  27. frame.BackgroundTransparency = 0.2
  28. frame.ClipsDescendants = true -- Hide anything that overflows the frame
  29.  
  30. -- Create a UICorner to round the corners of the frame
  31. local corner = Instance.new("UICorner")
  32. corner.CornerRadius = UDim.new(0, 12) -- Round corners
  33. corner.Parent = frame
  34.  
  35. -- Input Box for entering the key
  36. local inputBox = Instance.new("TextBox")
  37. inputBox.Parent = frame
  38. inputBox.Size = UDim2.new(0, 230, 0, 30) -- Slightly smaller size to keep it compact
  39. inputBox.Position = UDim2.new(0, 10, 0, 15)
  40. inputBox.Text = ""
  41. inputBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  42. inputBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  43. inputBox.TextSize = 16
  44. inputBox.ClearTextOnFocus = true
  45. inputBox.TextXAlignment = Enum.TextXAlignment.Left
  46. inputBox.TextYAlignment = Enum.TextYAlignment.Center
  47. inputBox.TextWrapped = false -- No wrapping
  48. inputBox.TextTruncate = Enum.TextTruncate.AtEnd -- Hide overflow text
  49.  
  50. -- Add a subtle glow effect to the text box (focus)
  51. inputBox.FocusLost:Connect(function()
  52. if inputBox.Text == "" then
  53. inputBox.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  54. else
  55. inputBox.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  56. end
  57. end)
  58.  
  59. -- Border effect on hover (for interactivity)
  60. inputBox.MouseEnter:Connect(function()
  61. inputBox.BorderSizePixel = 2
  62. inputBox.BorderColor3 = Color3.fromRGB(0, 255, 0) -- Green on hover
  63. end)
  64.  
  65. inputBox.MouseLeave:Connect(function()
  66. inputBox.BorderSizePixel = 0
  67. end)
  68.  
  69. -- Directly validate the key when the script runs
  70. local response = KeyGuardLibrary.validatePremiumKey(key)
  71. if response == trueData then
  72. print("Key is valid")
  73. wait(5) -- Optionally add a delay before destroying the GUI
  74. screenGui:Destroy() -- Destroy the GUI
  75. else
  76. print("Key is invalid")
  77. end
  78.  
Advertisement
Add Comment
Please, Sign In to add comment