SumitScripts

Untitled

May 19th, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  3.  
  4. local Frame = Instance.new("Frame")
  5. Frame.Size = UDim2.new(0, 400, 0, 300)
  6. Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  7. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  8. Frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  9. Frame.BorderSizePixel = 0
  10. Frame.Active = true
  11. Frame.Draggable = true
  12. Frame.Parent = ScreenGui
  13.  
  14. local FrameCorner = Instance.new("UICorner")
  15. FrameCorner.CornerRadius = UDim.new(0, 10)
  16. FrameCorner.Parent = Frame
  17.  
  18. local Close = Instance.new("TextButton")
  19. Close.Size = UDim2.new(0, 40, 0, 40)
  20. Close.Position = UDim2.new(1, -40, 0, 0)
  21. Close.BackgroundTransparency = 1
  22. Close.Text = "×"
  23. Close.TextScaled = true
  24. Close.TextColor3 = Color3.fromRGB(150, 150, 150)
  25. Close.Parent = Frame
  26. Close.MouseButton1Click:Connect(function()
  27. ScreenGui:Destroy()
  28. end)
  29.  
  30. local Title = Instance.new("TextLabel")
  31. Title.Size = UDim2.new(1, 0, 0, 30)
  32. Title.Position = UDim2.new(0, 0, 0.05, 0)
  33. Title.Text = "Key System"
  34. Title.TextSize = 18
  35. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  36. Title.BackgroundTransparency = 1
  37. Title.Parent = Frame
  38.  
  39. local Instructions = Instance.new("TextLabel")
  40. Instructions.Size = UDim2.new(1, 0, 0, 30)
  41. Instructions.Position = UDim2.new(0, 0, 0.2, 0)
  42. Instructions.Text = "Enter Key To Access The Script"
  43. Instructions.TextSize = 13
  44. Instructions.TextColor3 = Color3.fromRGB(150, 150, 150)
  45. Instructions.BackgroundTransparency = 1
  46. Instructions.Parent = Frame
  47.  
  48. local TextBox = Instance.new("TextBox")
  49. TextBox.Size = UDim2.new(0.8, 0, 0.2, 0)
  50. TextBox.Position = UDim2.new(0.1, 0, 0.4, 0)
  51. TextBox.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  52. TextBox.PlaceholderText = "Enter Key..."
  53. TextBox.Text = ""
  54. TextBox.TextSize = 18
  55. TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  56. TextBox.Parent = Frame
  57.  
  58. local TextBoxCorner = Instance.new("UICorner")
  59. TextBoxCorner.CornerRadius = UDim.new(0, 5)
  60. TextBoxCorner.Parent = TextBox
  61.  
  62. local GetKey = Instance.new("TextButton")
  63. GetKey.Size = UDim2.new(0.35, 0, 0.15, 0)
  64. GetKey.Position = UDim2.new(0.1, 0, 0.7, 0)
  65. GetKey.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  66. GetKey.Text = "Get Key"
  67. GetKey.TextSize = 18
  68. GetKey.TextColor3 = Color3.fromRGB(150, 150, 150)
  69. GetKey.Parent = Frame
  70.  
  71. local GetKeyCorner = Instance.new("UICorner")
  72. GetKeyCorner.CornerRadius = UDim.new(0, 5)
  73. GetKeyCorner.Parent = GetKey
  74.  
  75. local CheckKey = Instance.new("TextButton")
  76. CheckKey.Size = UDim2.new(0.35, 0, 0.15, 0)
  77. CheckKey.Position = UDim2.new(0.55, 0, 0.7, 0)
  78. CheckKey.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  79. CheckKey.Text = "Check Key"
  80. CheckKey.TextSize = 18
  81. CheckKey.TextColor3 = Color3.fromRGB(150, 150, 150)
  82. CheckKey.Parent = Frame
  83.  
  84. local CheckKeyCorner = Instance.new("UICorner")
  85. CheckKeyCorner.CornerRadius = UDim.new(0, 5)
  86. CheckKeyCorner.Parent = CheckKey
  87.  
  88. GetKey.MouseButton1Click:Connect(function()
  89. setclipboard("Your Way How To Get The Key")
  90. end)
  91.  
  92. local function validateKey(key)
  93. return key == "Key" -- Replace this with your key
  94. end
  95.  
  96. CheckKey.MouseButton1Click:Connect(function()
  97. local enteredKey = TextBox.Text
  98. if validateKey(enteredKey) then
  99. TextBox.PlaceholderText = "Correct Key!"
  100. TextBox.Text = ""
  101. wait(1)
  102. ScreenGui:Destroy()
  103.  
  104. -- Put Your Script Here
  105. loadstring(game:HttpGet('https://pastebin.com/raw/YSL3xKYU'))()
  106.  
  107. else
  108. TextBox.PlaceholderText = "Invalid key. Try again."
  109. TextBox.Text = ""
  110. wait(1)
  111. TextBox.PlaceholderText = "Enter Key..."
  112. TextBox.Text = ""
  113. end
  114. end)
Add Comment
Please, Sign In to add comment