-- Key system GUI (Luau) with Close (X) button -- Set your key here: local CORRECT_KEY = "MY-SECRET-KEY-123" local YT_LINK = "https://www.youtube.com/@michaelsherlock04" local LOADER_URL = "https://raw.githubusercontent.com/LennonHubOfficial/LennonHub/refs/heads/main/SaB/Main.lua" -- Services local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer and LocalPlayer:WaitForChild("PlayerGui") -- Parent target (PlayerGui preferred) local parentGui = PlayerGui or (game:GetService("CoreGui") and game:GetService("CoreGui")) -- Create ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "KeySystemGUI" screenGui.ResetOnSpawn = false screenGui.Parent = parentGui -- Main frame local frame = Instance.new("Frame") frame.Name = "Main" frame.Size = UDim2.new(0, 380, 0, 160) frame.Position = UDim2.new(0.5, -190, 0.5, -80) frame.AnchorPoint = Vector2.new(0.5, 0.5) frame.BackgroundColor3 = Color3.fromRGB(28, 28, 30) frame.BorderSizePixel = 0 frame.Parent = screenGui -- Title local title = Instance.new("TextLabel") title.Parent = frame title.Size = UDim2.new(1, -60, 0, 30) -- leave room for the X button title.Position = UDim2.new(0, 10, 0, 8) title.BackgroundTransparency = 1 title.Text = "Script Key System" title.Font = Enum.Font.SourceSansBold title.TextSize = 20 title.TextColor3 = Color3.fromRGB(230,230,230) title.TextXAlignment = Enum.TextXAlignment.Left -- Close (X) button local closeBtn = Instance.new("TextButton") closeBtn.Parent = frame closeBtn.Name = "CloseButton" closeBtn.Size = UDim2.new(0, 32, 0, 28) closeBtn.Position = UDim2.new(1, -44, 0, 8) -- near top-right closeBtn.AnchorPoint = Vector2.new(0, 0) closeBtn.Text = "X" closeBtn.Font = Enum.Font.SourceSansBold closeBtn.TextSize = 18 closeBtn.BackgroundColor3 = Color3.fromRGB(70, 70, 75) closeBtn.TextColor3 = Color3.fromRGB(240,240,240) closeBtn.BorderSizePixel = 0 closeBtn.AutoButtonColor = true closeBtn.MouseButton1Click:Connect(function() if screenGui and screenGui.Parent then screenGui:Destroy() end end) -- Get Key button local getKeyBtn = Instance.new("TextButton") getKeyBtn.Parent = frame getKeyBtn.Size = UDim2.new(0, 140, 0, 36) getKeyBtn.Position = UDim2.new(0, 10, 0, 44) getKeyBtn.Text = "Get Key" getKeyBtn.Font = Enum.Font.SourceSansSemibold getKeyBtn.TextSize = 18 getKeyBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 66) getKeyBtn.TextColor3 = Color3.fromRGB(240,240,240) getKeyBtn.BorderSizePixel = 0 getKeyBtn.AutoButtonColor = true -- Clipboard / link label (shows status or link) local statusLabel = Instance.new("TextLabel") statusLabel.Parent = frame statusLabel.Size = UDim2.new(0, 210, 0, 24) statusLabel.Position = UDim2.new(0, 160, 0, 48) statusLabel.BackgroundTransparency = 1 statusLabel.Text = "Press 'Get Key' to copy link" statusLabel.Font = Enum.Font.SourceSans statusLabel.TextSize = 14 statusLabel.TextColor3 = Color3.fromRGB(185,185,185) statusLabel.TextXAlignment = Enum.TextXAlignment.Left -- Input box (enter key here) local inputBox = Instance.new("TextBox") inputBox.Parent = frame inputBox.Size = UDim2.new(1, -20, 0, 36) inputBox.Position = UDim2.new(0, 10, 0, 84) inputBox.PlaceholderText = "Enter key here and press Enter or Submit" inputBox.Text = "" inputBox.Font = Enum.Font.SourceSans inputBox.TextSize = 16 inputBox.ClearTextOnFocus = false inputBox.BackgroundColor3 = Color3.fromRGB(40,40,46) inputBox.TextColor3 = Color3.fromRGB(245,245,245) inputBox.BorderSizePixel = 0 inputBox.TextXAlignment = Enum.TextXAlignment.Left -- Submit button (optional, in addition to Enter) local submitBtn = Instance.new("TextButton") submitBtn.Parent = frame submitBtn.Size = UDim2.new(0, 100, 0, 30) submitBtn.Position = UDim2.new(1, -110, 1, -40) submitBtn.AnchorPoint = Vector2.new(0, 0) submitBtn.Text = "Submit" submitBtn.Font = Enum.Font.SourceSansSemibold submitBtn.TextSize = 16 submitBtn.BackgroundColor3 = Color3.fromRGB(70,70,80) submitBtn.TextColor3 = Color3.fromRGB(240,240,240) submitBtn.BorderSizePixel = 0 submitBtn.AutoButtonColor = true -- Helper: temporary status display local function showTempStatus(text, timeSec) timeSec = timeSec or 2.5 statusLabel.Text = text spawn(function() wait(timeSec) if statusLabel and statusLabel.Parent then statusLabel.Text = "Press 'Get Key' to copy link" end end) end -- Attempt to copy to clipboard (try common exploit functions) getKeyBtn.MouseButton1Click:Connect(function() local copied = false local ok, err if setclipboard then ok, err = pcall(function() setclipboard(YT_LINK) end) copied = ok elseif (syn and syn.set_thread_identity) or (getsenv ~= nil) then ok, err = pcall(function() if setclipboard then setclipboard(YT_LINK) end end) copied = ok and (setclipboard ~= nil) end if copied then showTempStatus("Link copied to clipboard!", 2.0) else statusLabel.Text = YT_LINK showTempStatus("Clipboard unavailable — link shown above", 5) end end) -- Activation function: runs the remote loader safely with pcall local function activateLoader() showTempStatus("Activating... (check console for errors)", 2) local ok, err = pcall(function() -- WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk! local lua = game:HttpGet(LOADER_URL) local f = loadstring(lua) if type(f) == "function" then f() else error("Loader did not return a function") end end) if not ok then showTempStatus("Activation failed: "..tostring(err), 5) warn("Activation error:", err) else showTempStatus("Activated successfully!", 2) if screenGui and screenGui.Parent then screenGui:Destroy() end end end -- Key validation handler local function checkKeyAndActivate(enteredKey) if tostring(enteredKey or "") == CORRECT_KEY then activateLoader() else showTempStatus("Wrong key — try again", 2.5) -- shake animation spawn(function() local origPos = frame.Position for i = 1, 6 do frame.Position = origPos + UDim2.new(0, (i % 2 == 0) and 6 or -6, 0, 0) wait(0.03) end frame.Position = origPos end) end end -- Submit button click submitBtn.MouseButton1Click:Connect(function() checkKeyAndActivate(inputBox.Text) end) -- Enter key (FocusLost with enterPressed) inputBox.FocusLost:Connect(function(enterPressed) if enterPressed then checkKeyAndActivate(inputBox.Text) end end) -- Allow close with ESC as well local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.Escape then if screenGui and screenGui.Parent then screenGui:Destroy() end end end) print("Key system loaded. Correct key is: "..CORRECT_KEY)