Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Create a shadow effect for the frame
- local shadow = Instance.new("ImageLabel")
- shadow.Size = UDim2.new(0, 210, 0, 110)
- shadow.Position = UDim2.new(0.5, -105, 0.5, -55)
- shadow.BackgroundTransparency = 1
- shadow.Image = "rbxassetid://1316045217" -- Use a shadow image asset ID
- shadow.ImageColor3 = Color3.new(0, 0, 0)
- shadow.ImageTransparency = 0.5 -- Adjust for a shadow effect
- shadow.Parent = screenGui
- -- Create the main frame
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 200, 0, 100)
- frame.Position = UDim2.new(0.5, -100, 0.5, -50)
- frame.BackgroundColor3 = Color3.new(1, 1, 1)
- frame.BorderSizePixel = 0
- frame.Parent = screenGui
- -- Gradient for the frame background
- local gradient = Instance.new("UIGradient")
- gradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 255, 255)), -- Start with sea blue
- ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 105, 180)) -- End with a pinkish color
- }
- gradient.Parent = frame
- -- Rounded rainbow sea-blue corner
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 12) -- Adjust for rounded corners
- corner.Parent = frame
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, 0, 0, 20)
- title.Position = UDim2.new(0, 0, 0, -20)
- title.Text = "Purify Key System"
- title.TextColor3 = Color3.new(1, 1, 1)
- title.BackgroundColor3 = Color3.new(0, 0, 0)
- title.Parent = frame
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- title.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- title.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- title.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = false
- dragInput = nil
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- local KeySystem = Instance.new("TextBox")
- KeySystem.Size = UDim2.new(1, 0, 0.5, 0)
- KeySystem.Position = UDim2.new(0, 0, 0, 0)
- KeySystem.Text = "Enter the Key"
- KeySystem.TextColor3 = Color3.new(0, 0, 0)
- KeySystem.BackgroundTransparency = 0.5
- KeySystem.BackgroundColor3 = Color3.new(1, 1, 1)
- KeySystem.TextWrapped = true
- KeySystem.Parent = frame
- local SubmitButton = Instance.new("TextButton")
- SubmitButton.Size = UDim2.new(0.5, 0, 0.5, 0)
- SubmitButton.Position = UDim2.new(0, 0, 0.5, 0)
- SubmitButton.Text = "Submit"
- SubmitButton.Parent = frame
- local CloseButton = Instance.new("TextButton")
- CloseButton.Size = UDim2.new(0, 20, 0, 20)
- CloseButton.Position = UDim2.new(1, -20, 0, 0)
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.new(1, 1, 1)
- CloseButton.BackgroundColor3 = Color3.new(1, 0, 0)
- CloseButton.Parent = frame
- CloseButton.MouseButton1Click:Connect(function()
- screenGui:Destroy()
- end)
- local GetKeyButton = Instance.new("TextButton")
- GetKeyButton.Size = UDim2.new(0.5, 0, 0.5, 0)
- GetKeyButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- GetKeyButton.Text = "discord to get key"
- GetKeyButton.Parent = frame
- -- Handle key submission with a 24-hour expiration
- local function keyExpired(expirationTime)
- local currentTime = os.time() -- Get current time in seconds
- return currentTime >= expirationTime -- Return true if time has expired
- end
- SubmitButton.MouseButton1Click:Connect(function()
- local keyEntered = KeySystem.Text
- local expirationTime = os.time() + 24 * 3600 -- Current time + 24 hours in seconds
- if keyEntered == "PURIFYISMYLIFE" and not keyExpired(expirationTime) then
- screenGui:Destroy()
- -- Add your main script after key verification here
- loadstring(game:HttpGet("https://raw.githubusercontent.com/Eren-arch/Noskids/main/WHOEVERSKIDTHISISRETARTED"))()
- else
- KeySystem.Text = "Invalid or Expired Key!"
- end
- end)
- GetKeyButton.MouseButton1Click:Connect(function()
- setclipboard("https://discord.gg/6SVXPGJz")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement