Universal Script 📌
6.8k Views
11 Executions

Simple Key System

Universal Script 📌
c4l3bkidd_oofers94
c4l3bkidd_oofers94Published 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

A simple key system Codes: oofers940 (Roblox) UI: buritobuilder2 (Roblox)

View Raw
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, 0, 0.3, 0)
textBox.Position = UDim2.new(0.1, 0, 0.1, 0)
textBox.PlaceholderText = "Key"
textBox.Text = ""
textBox.Parent = frame

local button = Instance.new("TextButton")
button.Size = UDim2.new(0.8, 0, 0.3, 0)
button.Position = UDim2.new(0.1, 0, 0.6, 0)
button.Text = "Enter"
button.Parent = frame

button.MouseButton1Click:Connect(function()
    if textBox.Text == correctKey then
        gui:Destroy()
        loadstring(scriptToLoad)()
    else
        textBox.Text = "Invalid Key"
    end
end)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
3.0M
1.1M
Bumped 3 hours ago
Key System

Script hub

#6 today

CanHub V2 200 GAMES KEYLESS

Script hub
167
7
22 hours ago
Script hub
277.5k
165.4k
Bumped 4 hours ago
Key System
Universal Script 📌
6.7k
17.0k
Bumped 4 hours ago
Script hub
1.7M
431.9k
Bumped 5 hours ago
Key System

Script hub

#7 today

Verified script badgeAxonic Hub | 50+ Games Supported

Universal Script 📌
2.5k
7.1k
Bumped 10 hours ago
Script hub
5.9k
86.5k
Bumped 10 hours ago

Script hub

SAGAZx Hub

Script hub
77.7k
274.5k
Bumped 11 hours ago
Key System