
KeylessUniversal

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)
checkKeyButton.Size = UDim2.new(0, 160, 0, 60)
checkKeyButton.Text = "Check Key"
checkKeyButton.Font = Enum.Font.SourceSans
checkKeyButton.TextSize = 24
checkKeyButton.BackgroundTransparency = 1
checkKeyButton.TextColor3 = Color3.new(1, 0.968627, 0.968627)
local titleLabel = Instance.new("TextLabel", mainFrame)
titleLabel.AnchorPoint = Vector2.new(0.5, 0.5)
titleLabel.Position = UDim2.new(0.5, 0, 0.5, -80)
titleLabel.TextColor3 = Color3.new(0.992156, 0.984313, 0.984313)
titleLabel.Font = Enum.Font.SourceSans
titleLabel.TextSize = 62
titleLabel.Text = "Key Auth"
checkKeyButton.MouseButton1Click:Connect(function()
if key == keyTextBox.Text then
keyPassCallback()
game:GetService("TweenService"):Create(mainFrame, TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0), {Position = UDim2.new(1, 999, 0.5, 0)}):Play()
task.wait(1)
screenGui:Destroy()
else
keyWrongCallback()
end
end)
if keyLink ~= "" then
local keyLinkLabel = Instance.new("TextLabel", mainFrame)
keyLinkLabel.AnchorPoint = Vector2.new(0.5, 0.5)
keyLinkLabel.Position = UDim2.new(0.5, 0, 0.5, 20)
keyLinkLabel.Size = UDim2.new(0, 20, 0, 20)
keyLinkLabel.Text = "Get Key From " .. keyLink
keyLinkLabel.TextSize = 20
keyLinkLabel.Font = Enum.Font.SourceSans
keyLinkLabel.BackgroundTransparency = 1
keyLinkLabel.TextColor3 = Color3.new(0.494117, 0.552941, 0.992156)
end
closeButton.MouseButton1Click:Connect(function()
game:GetService("TweenService"):Create(mainFrame, TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0), {Position = UDim2.new(1, 999, 0.5, 0)}):Play()
task.wait(1)
screenGui:Destroy()
end)
end
return moduleNo comments yet for this script.



