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)