Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Custom UI Script with Key System, Get Key, Minimize, Close, and Dragging
- local key = "dcTwwzZUKN1FhMjfdzsRc1UV2q7n0I"
- local url = "https://lootdest.org/s?j6Rqhr6O"
- -- Create Screen GUI
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local KeyBox = Instance.new("TextBox")
- local SubmitButton = Instance.new("TextButton")
- local GetKeyButton = Instance.new("TextButton")
- local Notification = Instance.new("TextLabel")
- local CloseButton = Instance.new("TextButton")
- local MinimizeButton = Instance.new("TextButton")
- -- Parent GUI to Player's PlayerGui
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.Name = "CustomKeyUI"
- -- Frame Setup
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
- Frame.Size = UDim2.new(0, 300, 0, 250)
- Frame.Position = UDim2.new(0.5, -150, 0.5, -125)
- Frame.BorderSizePixel = 0
- Frame.Active = true -- Needed for dragging
- Frame.Draggable = true -- Makes the frame draggable
- -- Title Setup
- Title.Parent = Frame
- Title.Text = "Kiilms Hub Key System"
- Title.Size = UDim2.new(1, 0, 0.15, 0)
- Title.Position = UDim2.new(0, 0, 0, 0)
- Title.BackgroundTransparency = 1
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextScaled = true
- Title.Font = Enum.Font.SourceSansBold
- -- KeyBox Setup
- KeyBox.Parent = Frame
- KeyBox.PlaceholderText = "Enter your key here"
- KeyBox.Size = UDim2.new(0.8, 0, 0.2, 0)
- KeyBox.Position = UDim2.new(0.1, 0, 0.2, 0)
- KeyBox.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- KeyBox.BorderSizePixel = 0
- KeyBox.TextColor3 = Color3.new(1, 1, 1)
- KeyBox.Font = Enum.Font.SourceSans
- KeyBox.TextScaled = true
- -- SubmitButton Setup
- SubmitButton.Parent = Frame
- SubmitButton.Text = "Submit"
- SubmitButton.Size = UDim2.new(0.6, 0, 0.15, 0)
- SubmitButton.Position = UDim2.new(0.2, 0, 0.45, 0)
- SubmitButton.BackgroundColor3 = Color3.new(0.15, 0.6, 0.15)
- SubmitButton.TextColor3 = Color3.new(1, 1, 1)
- SubmitButton.Font = Enum.Font.SourceSansBold
- SubmitButton.TextScaled = true
- -- GetKeyButton Setup
- GetKeyButton.Parent = Frame
- GetKeyButton.Text = "Get Key"
- GetKeyButton.Size = UDim2.new(0.6, 0, 0.15, 0)
- GetKeyButton.Position = UDim2.new(0.2, 0, 0.65, 0)
- GetKeyButton.BackgroundColor3 = Color3.new(0.2, 0.4, 0.8)
- GetKeyButton.TextColor3 = Color3.new(1, 1, 1)
- GetKeyButton.Font = Enum.Font.SourceSansBold
- GetKeyButton.TextScaled = true
- -- Notification Setup
- Notification.Parent = Frame
- Notification.Text = ""
- Notification.Size = UDim2.new(1, 0, 0.15, 0)
- Notification.Position = UDim2.new(0, 0, 0.85, 0)
- Notification.BackgroundTransparency = 1
- Notification.TextColor3 = Color3.new(1, 0, 0)
- Notification.TextScaled = true
- Notification.Font = Enum.Font.SourceSansBold
- -- CloseButton Setup
- CloseButton.Parent = Frame
- CloseButton.Text = "X"
- CloseButton.Size = UDim2.new(0.15, 0, 0.15, 0)
- CloseButton.Position = UDim2.new(0.85, 0, 0, 0)
- CloseButton.BackgroundColor3 = Color3.new(0.8, 0.2, 0.2)
- CloseButton.TextColor3 = Color3.new(1, 1, 1)
- CloseButton.Font = Enum.Font.SourceSansBold
- CloseButton.TextScaled = true
- -- MinimizeButton Setup
- MinimizeButton.Parent = Frame
- MinimizeButton.Text = "_"
- MinimizeButton.Size = UDim2.new(0.15, 0, 0.15, 0)
- MinimizeButton.Position = UDim2.new(0.7, 0, 0, 0)
- MinimizeButton.BackgroundColor3 = Color3.new(0.8, 0.8, 0.2)
- MinimizeButton.TextColor3 = Color3.new(0, 0, 0)
- MinimizeButton.Font = Enum.Font.SourceSansBold
- MinimizeButton.TextScaled = true
- -- Key Validation Logic
- SubmitButton.MouseButton1Click:Connect(function()
- if KeyBox.Text == key then
- Notification.TextColor3 = Color3.new(0, 1, 0)
- Notification.Text = "Access Granted!"
- wait(1)
- ScreenGui:Destroy() -- Remove the key system UI
- print("Kiilms Hub Unlocked!")
- else
- Notification.TextColor3 = Color3.new(1, 0, 0)
- Notification.Text = "Invalid Key. Try Again."
- wait(2)
- Notification.Text = ""
- end
- end)
- -- Copy URL to Clipboard Logic
- GetKeyButton.MouseButton1Click:Connect(function()
- setclipboard(url) -- Copies the key URL to the clipboard
- Notification.TextColor3 = Color3.new(0, 1, 0)
- Notification.Text = "Key link copied to clipboard!"
- wait(2)
- Notification.Text = ""
- end)
- -- Close Button Logic
- CloseButton.MouseButton1Click:Connect(function()
- ScreenGui:Destroy() -- Destroys the entire GUI
- end)
- -- Minimize Button Logic
- MinimizeButton.MouseButton1Click:Connect(function()
- Frame.Visible = false
- Notification.Text = "Right Ctrl to open tab back."
- Notification.TextColor3 = Color3.new(0, 1, 0)
- wait(3)
- Notification.Text = ""
- end)
- -- Reopen GUI with RightCtrl
- local UserInputService = game:GetService("UserInputService")
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if input.KeyCode == Enum.KeyCode.RightControl and not gameProcessed then
- Frame.Visible = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment