KiilmYk

afdeafe

Jan 22nd, 2025 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 KB | None | 0 0
  1. -- Custom UI Script with Key System, Get Key, Minimize, Close, and Dragging
  2.  
  3. local key = "dcTwwzZUKN1FhMjfdzsRc1UV2q7n0I"
  4. local url = "https://lootdest.org/s?j6Rqhr6O"
  5.  
  6. -- Create Screen GUI
  7. local ScreenGui = Instance.new("ScreenGui")
  8. local Frame = Instance.new("Frame")
  9. local Title = Instance.new("TextLabel")
  10. local KeyBox = Instance.new("TextBox")
  11. local SubmitButton = Instance.new("TextButton")
  12. local GetKeyButton = Instance.new("TextButton")
  13. local Notification = Instance.new("TextLabel")
  14. local CloseButton = Instance.new("TextButton")
  15. local MinimizeButton = Instance.new("TextButton")
  16.  
  17. -- Parent GUI to Player's PlayerGui
  18. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  19. ScreenGui.Name = "CustomKeyUI"
  20.  
  21. -- Frame Setup
  22. Frame.Parent = ScreenGui
  23. Frame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  24. Frame.Size = UDim2.new(0, 300, 0, 250)
  25. Frame.Position = UDim2.new(0.5, -150, 0.5, -125)
  26. Frame.BorderSizePixel = 0
  27. Frame.Active = true -- Needed for dragging
  28. Frame.Draggable = true -- Makes the frame draggable
  29.  
  30. -- Title Setup
  31. Title.Parent = Frame
  32. Title.Text = "Kiilms Hub Key System"
  33. Title.Size = UDim2.new(1, 0, 0.15, 0)
  34. Title.Position = UDim2.new(0, 0, 0, 0)
  35. Title.BackgroundTransparency = 1
  36. Title.TextColor3 = Color3.new(1, 1, 1)
  37. Title.TextScaled = true
  38. Title.Font = Enum.Font.SourceSansBold
  39.  
  40. -- KeyBox Setup
  41. KeyBox.Parent = Frame
  42. KeyBox.PlaceholderText = "Enter your key here"
  43. KeyBox.Size = UDim2.new(0.8, 0, 0.2, 0)
  44. KeyBox.Position = UDim2.new(0.1, 0, 0.2, 0)
  45. KeyBox.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  46. KeyBox.BorderSizePixel = 0
  47. KeyBox.TextColor3 = Color3.new(1, 1, 1)
  48. KeyBox.Font = Enum.Font.SourceSans
  49. KeyBox.TextScaled = true
  50.  
  51. -- SubmitButton Setup
  52. SubmitButton.Parent = Frame
  53. SubmitButton.Text = "Submit"
  54. SubmitButton.Size = UDim2.new(0.6, 0, 0.15, 0)
  55. SubmitButton.Position = UDim2.new(0.2, 0, 0.45, 0)
  56. SubmitButton.BackgroundColor3 = Color3.new(0.15, 0.6, 0.15)
  57. SubmitButton.TextColor3 = Color3.new(1, 1, 1)
  58. SubmitButton.Font = Enum.Font.SourceSansBold
  59. SubmitButton.TextScaled = true
  60.  
  61. -- GetKeyButton Setup
  62. GetKeyButton.Parent = Frame
  63. GetKeyButton.Text = "Get Key"
  64. GetKeyButton.Size = UDim2.new(0.6, 0, 0.15, 0)
  65. GetKeyButton.Position = UDim2.new(0.2, 0, 0.65, 0)
  66. GetKeyButton.BackgroundColor3 = Color3.new(0.2, 0.4, 0.8)
  67. GetKeyButton.TextColor3 = Color3.new(1, 1, 1)
  68. GetKeyButton.Font = Enum.Font.SourceSansBold
  69. GetKeyButton.TextScaled = true
  70.  
  71. -- Notification Setup
  72. Notification.Parent = Frame
  73. Notification.Text = ""
  74. Notification.Size = UDim2.new(1, 0, 0.15, 0)
  75. Notification.Position = UDim2.new(0, 0, 0.85, 0)
  76. Notification.BackgroundTransparency = 1
  77. Notification.TextColor3 = Color3.new(1, 0, 0)
  78. Notification.TextScaled = true
  79. Notification.Font = Enum.Font.SourceSansBold
  80.  
  81. -- CloseButton Setup
  82. CloseButton.Parent = Frame
  83. CloseButton.Text = "X"
  84. CloseButton.Size = UDim2.new(0.15, 0, 0.15, 0)
  85. CloseButton.Position = UDim2.new(0.85, 0, 0, 0)
  86. CloseButton.BackgroundColor3 = Color3.new(0.8, 0.2, 0.2)
  87. CloseButton.TextColor3 = Color3.new(1, 1, 1)
  88. CloseButton.Font = Enum.Font.SourceSansBold
  89. CloseButton.TextScaled = true
  90.  
  91. -- MinimizeButton Setup
  92. MinimizeButton.Parent = Frame
  93. MinimizeButton.Text = "_"
  94. MinimizeButton.Size = UDim2.new(0.15, 0, 0.15, 0)
  95. MinimizeButton.Position = UDim2.new(0.7, 0, 0, 0)
  96. MinimizeButton.BackgroundColor3 = Color3.new(0.8, 0.8, 0.2)
  97. MinimizeButton.TextColor3 = Color3.new(0, 0, 0)
  98. MinimizeButton.Font = Enum.Font.SourceSansBold
  99. MinimizeButton.TextScaled = true
  100.  
  101. -- Key Validation Logic
  102. SubmitButton.MouseButton1Click:Connect(function()
  103. if KeyBox.Text == key then
  104. Notification.TextColor3 = Color3.new(0, 1, 0)
  105. Notification.Text = "Access Granted!"
  106. wait(1)
  107. ScreenGui:Destroy() -- Remove the key system UI
  108. print("Kiilms Hub Unlocked!")
  109. else
  110. Notification.TextColor3 = Color3.new(1, 0, 0)
  111. Notification.Text = "Invalid Key. Try Again."
  112. wait(2)
  113. Notification.Text = ""
  114. end
  115. end)
  116.  
  117. -- Copy URL to Clipboard Logic
  118. GetKeyButton.MouseButton1Click:Connect(function()
  119. setclipboard(url) -- Copies the key URL to the clipboard
  120. Notification.TextColor3 = Color3.new(0, 1, 0)
  121. Notification.Text = "Key link copied to clipboard!"
  122. wait(2)
  123. Notification.Text = ""
  124. end)
  125.  
  126. -- Close Button Logic
  127. CloseButton.MouseButton1Click:Connect(function()
  128. ScreenGui:Destroy() -- Destroys the entire GUI
  129. end)
  130.  
  131. -- Minimize Button Logic
  132. MinimizeButton.MouseButton1Click:Connect(function()
  133. Frame.Visible = false
  134. Notification.Text = "Right Ctrl to open tab back."
  135. Notification.TextColor3 = Color3.new(0, 1, 0)
  136. wait(3)
  137. Notification.Text = ""
  138. end)
  139.  
  140. -- Reopen GUI with RightCtrl
  141. local UserInputService = game:GetService("UserInputService")
  142. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  143. if input.KeyCode == Enum.KeyCode.RightControl and not gameProcessed then
  144. Frame.Visible = true
  145. end
  146. end)
  147.  
Advertisement
Add Comment
Please, Sign In to add comment