Run it
Copy the script and paste it into your executor.
local correctKey = "MySecretKey" -- Change this to your desired key
local scriptToLoad = "print('Key Accepted! Script Executed')" -- Change this to your desired script
local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui")
gui.Name = "Key System"
gui.Parent = player.PlayerGui
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.fromRGB(50, 50, 50)
frame.Parent = gui
local textBox = Instance.new("TextBox")
textBox.Size = UDim2.new(0.8, , , )
textBox.Position = .(, , , )
textBox.PlaceholderText =
textBox.Text =
textBox.Parent = frame
button = .()
button.Size = .(, , , )
button.Position = .(, , , )
button.Text =
button.Parent = frame
button.MouseButton1Click:(()
textBox.Text == correctKey
gui:()
(scriptToLoad)()
textBox.Text =
)
Universal