0% found this document useful (0 votes)
14 views4 pages

Addon Lua

This document is a Lua script for a Roblox game that creates a user interface for checking a key and accessing special powers. It includes a main frame for key input, buttons for checking the key and copying a link, and a hidden frame for powers that becomes visible upon entering a valid key. The script also implements dragging functionality for the key input frame.

Uploaded by

l39762434
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views4 pages

Addon Lua

This document is a Lua script for a Roblox game that creates a user interface for checking a key and accessing special powers. It includes a main frame for key input, buttons for checking the key and copying a link, and a hidden frame for powers that becomes visible upon entering a valid key. The script also implements dragging functionality for the key input frame.

Uploaded by

l39762434
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

-- LocalScript em StarterPlayerScripts

local player = [Link]


local playerGui = player:WaitForChild("PlayerGui")
local UIS = game:GetService("UserInputService")

-- Criar ScreenGui da Key


local screenGui = [Link]("ScreenGui")
[Link] = "InstantStealUI"
[Link] = false
[Link] = playerGui

-- Criar Frame principal (Tela da Key)


local frame = [Link]("Frame")
[Link] = [Link](0, 320, 0, 220)
[Link] = [Link](0.5, -160, 0.5, -110)
[Link] = [Link](0.5, 0.5)
frame.BackgroundColor3 = [Link](40, 40, 55)
[Link] = 0
[Link] = true
[Link] = false -- usamos script customizado
[Link] = screenGui

-- Cantos arredondados
local corner = [Link]("UICorner")
[Link] = [Link](0, 12)
[Link] = frame

-- Título
local title = [Link]("TextLabel")
[Link] = [Link](1, -20, 0, 30)
[Link] = [Link](0, 10, 0, 10)
[Link] = 1
[Link] = "🔑 Instant Steal - Check Key"
[Link] = [Link]
[Link] = 20
title.TextColor3 = [Link](255,255,255)
[Link] = [Link]
[Link] = frame

-- Caixa de texto
local keyBox = [Link]("TextBox")
[Link] = [Link](1, -40, 0, 40)
[Link] = [Link](0, 20, 0, 60)
[Link] = "Digite sua key aqui..."
[Link] = false
[Link] = [Link]
[Link] = 18
[Link] = ""
keyBox.TextColor3 = [Link](255,255,255)
keyBox.BackgroundColor3 = [Link](60, 60, 80)
[Link] = frame

local keyCorner = [Link]("UICorner")


[Link] = [Link](0, 8)
[Link] = keyBox

-- Botão de verificar Key


local checkButton = [Link]("TextButton")
[Link] = [Link](1, -40, 0, 40)
[Link] = [Link](0, 20, 0, 110)
[Link] = "✔️ Check Key"
[Link] = [Link]
[Link] = 18
checkButton.BackgroundColor3 = [Link](90,140,220)
checkButton.TextColor3 = [Link](255,255,255)
[Link] = frame

local btnCorner = [Link]("UICorner")


[Link] = [Link](0, 8)
[Link] = checkButton

-- Botão de copiar link


local copyButton = [Link]("TextButton")
[Link] = [Link](1, -40, 0, 40)
[Link] = [Link](0, 20, 0, 160)
[Link] = "📋 Copiar Link"
[Link] = [Link]
[Link] = 18
copyButton.BackgroundColor3 = [Link](100,200,100)
copyButton.TextColor3 = [Link](255,255,255)
[Link] = frame

local copyCorner = [Link]("UICorner")


[Link] = [Link](0, 8)
[Link] = copyButton

-- Status
local statusLabel = [Link]("TextLabel")
[Link] = [Link](1, -20, 0, 25)
[Link] = [Link](0, 10, 1, -30)
[Link] = ""
[Link] = [Link]
[Link] = 16
[Link] = 1
statusLabel.TextColor3 = [Link](200,200,200)
[Link] = [Link]
[Link] = frame

-- Key válida
local validKey = "MINHAKEY123"

-- Criar GUI Powers (oculta até acertar a key)


local powersGui = [Link]("Frame")
[Link] = [Link](0, 200, 0, 280)
[Link] = [Link](1, -210, 0.5, -140)
powersGui.BackgroundColor3 = [Link](30, 35, 55)
[Link] = false
[Link] = screenGui

local powersCorner = [Link]("UICorner")


[Link] = [Link](0, 12)
[Link] = powersGui

-- Título Powers
local pTitle = [Link]("TextLabel")
[Link] = [Link](1, 0, 0, 40)
[Link] = 1
[Link] = "⚡ Powers"
[Link] = [Link]
[Link] = 20
pTitle.TextColor3 = [Link](255,255,255)
[Link] = powersGui

-- Função para criar botões no Powers


local function createPowerButton(text, y)
local btn = [Link]("TextButton")
[Link] = [Link](1, -20, 0, 40)
[Link] = [Link](0, 10, 0, y)
[Link] = text
[Link] = [Link]
[Link] = 18
btn.BackgroundColor3 = [Link](50,100,180)
btn.TextColor3 = [Link](255,255,255)
[Link] = powersGui

local corner = [Link]("UICorner")


[Link] = [Link](0, 8)
[Link] = btn
end

createPowerButton("🏃 Correr Rápido", 50)


createPowerButton("🦘 Pular Alto", 100)
createPowerButton("⬆️ UpWalk", 150)
createPowerButton("💠 Instant Steal", 200)
createPowerButton("🔨 Travar Tool", 250)

-- Verificar Key
checkButton.MouseButton1Click:Connect(function()
if [Link] == validKey then
statusLabel.TextColor3 = [Link](0, 255, 120)
[Link] = "✅ Key aceita!"
[Link] = false
[Link] = true
else
statusLabel.TextColor3 = [Link](255, 80, 80)
[Link] = "❌ Key inválida!"
end
end)

-- Copiar link
local link = "[Link]
code=fd522342149c304cbdfba9b99c8a299d&type=Server"
copyButton.MouseButton1Click:Connect(function()
if setclipboard then
setclipboard(link)
[Link] = "✅ Link Copiado!"
[Link](2)
[Link] = "📋 Copiar Link"
else
[Link] = "⚠️ Não suportado"
[Link](2)
[Link] = "📋 Copiar Link"
end
end)

-- ======= SISTEMA DE ARRASTAR (Drag da tela da Key) =======


local dragging = false
local dragInput, dragStart, startPos

local function update(input)


local delta = [Link] - dragStart
[Link] = [Link](
[Link], [Link] + delta.X,
[Link], [Link] + delta.Y
)
end

[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 or
[Link] == [Link] then
dragging = true
dragStart = [Link]
startPos = [Link]

[Link]:Connect(function()
if [Link] == [Link] then
dragging = false
end
end)
end
end)

[Link]:Connect(function(input)
if [Link] == [Link] or
[Link] == [Link] then
dragInput = input
end
end)

[Link]:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)

You might also like