0% found this document useful (0 votes)
145 views2 pages

How to Retrieve the Access Key

The document outlines a Lua script for a Roblox GUI that allows users to enter a password and retrieve a key. It includes a ScreenGui with a draggable frame, a TextBox for password input, and two buttons for submitting the password and getting the key. The script checks if the entered password matches a predefined key and provides functionality to copy a URL to the clipboard when the 'Get Key' button is clicked.

Uploaded by

fntvvrxcr6
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views2 pages

How to Retrieve the Access Key

The document outlines a Lua script for a Roblox GUI that allows users to enter a password and retrieve a key. It includes a ScreenGui with a draggable frame, a TextBox for password input, and two buttons for submitting the password and getting the key. The script checks if the entered password matches a predefined key and provides functionality to copy a URL to the clipboard when the 'Get Key' button is clicked.

Uploaded by

fntvvrxcr6
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local correctPassword = " " ---------- thats the key lol

local isGettingKey = false

-- Create a ScreenGui
local screenGui = [Link]("ScreenGui")
[Link] = "PasswordGui"
[Link] = false
[Link] = 10 -- Ensure it's on top
[Link] = [Link]

-- Create a Frame for styling


local frame = [Link]("Frame")
[Link] = [Link](0.4, 0, 0.25, 0)
[Link] = [Link](0.3, 0, 0.35, 0)
frame.BackgroundColor3 = [Link](255, 255, 255)
[Link] = true -- Allows dragging
[Link] = true -- Allows dragging
[Link] = screenGui

-- Create a TextBox
local textBox = [Link]("TextBox")
[Link] = [Link](0.9, 0, 0.35, 0)
[Link] = [Link](0.05, 0, 0.2, 0)
[Link] = "Enter Key"
[Link] = true -- Auto scale text
[Link] = frame

-- Create a TextButton for submitting password


local submitButton = [Link]("TextButton")
[Link] = [Link](0.3, 0, 0.2, 0)
[Link] = [Link](0.35, 0, 0.6, 0)
submitButton.BackgroundColor3 = [Link](0, 120, 215)
[Link] = "Submit"
submitButton.TextColor3 = [Link](255, 255, 255)
[Link] = frame

-- Create a TextButton for getting the key


local getKeyButton = [Link]("TextButton")
[Link] = [Link](0.3, 0, 0.2, 0)
[Link] = [Link](0.35, 0, 0.8, 0)
getKeyButton.BackgroundColor3 = [Link](0, 120, 215)
[Link] = "Get Key"
getKeyButton.TextColor3 = [Link](255, 255, 255)
[Link] = frame

-- Function to handle button click for submitting password


local function onButtonClicked()
local enteredPassword = [Link]
if enteredPassword == correctPassword then
print("Correct password!")
-----put your code under here
-- Destroy the GUI elements
screenGui:Destroy()
else
print("Incorrect password. Try again.")
end
end

-- Function to handle button click for getting key


local function onGetKeyButtonClicked()
setclipboard("[Link] -------------
the copy part this gose to the players clipbord
if isGettingKey then
print("Password sent to browser.")
[Link] = "Get Key"
else
print("Getting key...")
[Link] = "Paste in Browser"
end
isGettingKey = not isGettingKey
end

-- Connect the functions to the button click events


submitButton.MouseButton1Click:Connect(onButtonClicked)
getKeyButton.MouseButton1Click:Connect(onGetKeyButtonClicked)

You might also like