
2.8k Views
2 Executions
KeyAuth
Universal Script 📌
justlivinlifePublished 10
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
A module to setup a key system for your script. !MUST OBFUSCATE THE CODE AFTER CONFIGURING!
local module = {}
function module:createKeyWindow(key, keyLink, keyWrongCallback, keyPassCallback)
local screenGui = Instance.new("ScreenGui", game:GetService("CoreGui"))
local mainFrame = Instance.new("Frame", screenGui)
mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
mainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
mainFrame.Size = UDim2.new(0, 440, 0, 240)
mainFrame.BackgroundColor3 = Color3.new(0.066666, 0.062745, 0.062745)
mainFrame.BorderSizePixel = 0
Instance.new("UICorner", mainFrame)
local closeButton = Instance.new("TextButton", mainFrame)
closeButton.AnchorPoint = Vector2.new(0.5, 0.5)
closeButton.Position = UDim2.new(0.5, 200, 0.5, -100)
closeButton.Size = UDim2.new(0, 20, 0, 20)
closeButton.TextSize = 22
closeButton.Font = Enum.Font.SourceSans
closeButton.Text = "X"
closeButton.BackgroundTransparency = 1
closeButton.TextColor3 = Color3.new(0.572549, 0.572549, 0.572549)
local keyTextBox = Instance.new("TextBox", mainFrame)
keyTextBox.AnchorPoint = Vector2.new(0.5, 0.5)
keyTextBox.Position = UDim2.new(0.5, 0, 0.5, -10)
keyTextBox.Size = UDim2.new(0, 260, 0, 160)
keyTextBox.TextColor3 = Color3.new(0.145098, 0.145098, 0.145098)
keyTextBox.PlaceholderColor3 = Color3.new(0.145098, 0.145098, 0.145098)
keyTextBox.Text = ""
keyTextBox.PlaceholderText = "Key here..."
keyTextBox.BackgroundTransparency = 1
keyTextBox.TextXAlignment = Enum.TextXAlignment.Left
keyTextBox.ClearTextOnFocus = false
keyTextBox.TextSize = 22
keyTextBox.Font = Enum.Font.SourceSans
local checkKeyButton = Instance.new("TextButton", mainFrame)
checkKeyButton.AnchorPoint = Vector2.new(0.5, 0.5)
checkKeyButton.Position = UDim2.new(0.5, 0, 0.5, 50)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!






