Dream hub
Key RequiredUniversal

Dream hub

Universal ScriptBrushBrush 1.5K views 2.9K executesUpdated Aug 23, 2026
Unrated
00
Lua Script•1152 lines (50442 chars)
--[=[
 d888b  db    db d888888b      .d888b.      db      db    db  .d8b.  
88' Y8b 88    88   `88'        VP  `8D      88      88    88 d8' `8b 
88      88    88    88            odD'      88      88    88 88ooo88 
88  ooo 88    88    88          .88'        88      88    88 88~~~88 
88. ~8~ 88b  d88   .88.        j88.         88booo. 88b  d88 88   88    @uniquadev
 Y888P  ~Y8888P' Y888888P      888888D      Y88888P ~Y8888P' YP   YP  CONVERTER 

Modified with Key System, Functional Buttons, Native ScriptBlox UI Page, Draggable Window & Discord Key Link
]=]

local LMG2L = {};

LMG2L["ScreenGui_1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
LMG2L["ScreenGui_1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
LMG2L["ScreenGui_1"].ResetOnSpawn = false

-- Key System Frame
LMG2L["KeyFrame"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["KeyFrame"]["Active"] = true;
LMG2L["KeyFrame"]["BorderSizePixel"] = 0;
LMG2L["KeyFrame"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["KeyFrame"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["KeyFrame"]["Position"] = UDim2.new(0, 98, 0, 20);

local KeyTitle = Instance.new("TextLabel", LMG2L["KeyFrame"]);
KeyTitle["Size"] = UDim2.new(0, 464, 0, 36);
KeyTitle["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
KeyTitle["TextColor3"] = Color3.fromRGB(255, 255, 255);
KeyTitle["TextSize"] = 24;
KeyTitle["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
KeyTitle["Text"] = [[Dream hub - Enter Key]];

local KeyBox = Instance.new("TextBox", LMG2L["KeyFrame"]);
KeyBox["Size"] = UDim2.new(0, 300, 0, 40);
KeyBox["Position"] = UDim2.new(0, 82, 0, 50);
KeyBox["PlaceholderText"] = [[Enter Key here...]];
KeyBox["Text"] = [[]];
KeyBox["TextSize"] = 18;
KeyBox["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
KeyBox["TextColor3"] = Color3.fromRGB(255, 255, 255);
KeyBox["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

local KeySubmit = Instance.new("TextButton", LMG2L["KeyFrame"]);
KeySubmit["Size"] = UDim2.new(0, 140, 0, 35);
KeySubmit["Position"] = UDim2.new(0, 82, 0, 135);
KeySubmit["Text"] = [[Submit Key]];
KeySubmit["TextSize"] = 15;
KeySubmit["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
KeySubmit["TextColor3"] = Color3.fromRGB(130, 203, 255);
KeySubmit["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

-- Discord Key Link Button
local DiscordButton = Instance.new("TextButton", LMG2L["KeyFrame"]);
DiscordButton["Size"] = UDim2.new(0, 140, 0, 35);
DiscordButton["Position"] = UDim2.new(0, 242, 0, 135);
DiscordButton["Text"] = [[Get Key (Discord)]];
DiscordButton["TextSize"] = 15;
DiscordButton["BackgroundColor3"] = Color3.fromRGB(88, 101, 242); -- Discord Blurple theme
DiscordButton["TextColor3"] = Color3.fromRGB(255, 255, 255);
DiscordButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);


-- Main GUI Frame (Hidden initially)
LMG2L["Frame_2"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["Frame_2"]["Active"] = true;
LMG2L["Frame_2"]["BorderSizePixel"] = 0;
LMG2L["Frame_2"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["Frame_2"]["Selectable"] = true;
LMG2L["Frame_2"]["Style"] = Enum.FrameStyle.RobloxRound;
LMG2L["Frame_2"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["Frame_2"]["Position"] = UDim2.new(0, 98, 0, 20);
LMG2L["Frame_2"].Visible = false;


LMG2L["TextLabel_3"] = Instance.new("TextLabel", LMG2L["Frame_2"]);
LMG2L["TextLabel_3"]["TextWrapped"] = true;
LMG2L["TextLabel_3"]["TextTruncate"] = Enum.TextTruncate.SplitWord;
LMG2L["TextLabel_3"]["SizeConstraint"] = Enum.SizeConstraint.RelativeXX;
LMG2L["TextLabel_3"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_3"]["TextSize"] = 24;
LMG2L["TextLabel_3"]["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
LMG2L["TextLabel_3"]["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
LMG2L["TextLabel_3"]["SelectionBehaviorDown"] = Enum.SelectionBehavior.Stop;
LMG2L["TextLabel_3"]["Size"] = UDim2.new(0, 330, 0, 36);
LMG2L["TextLabel_3"]["Text"] = [[Dream hub ( imagined✨ ) ]];
LMG2L["TextLabel_3"]["AutomaticSize"] = Enum.AutomaticSize.X;
LMG2L["TextLabel_3"]["Position"] = UDim2.new(0, -8, 0, -12);


LMG2L["TextBox_4"] = Instance.new("TextBox", LMG2L["TextLabel_3"]);
LMG2L["TextBox_4"]["TextXAlignment"] = Enum.TextXAlignment.Left;
LMG2L["TextBox_4"]["BorderSizePixel"] = 0;
LMG2L["TextBox_4"]["TextSize"] = 24;
LMG2L["TextBox_4"]["TextYAlignment"] = Enum.TextYAlignment.Top;
LMG2L["TextBox_4"]["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
LMG2L["TextBox_4"]["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextBox_4"]["Size"] = UDim2.new(0, 382, 0, 124);
LMG2L["TextBox_4"]["Position"] = UDim2.new(0, 10, 0, 48);
LMG2L["TextBox_4"]["Text"] = [[Rc7 fe bypass]];
LMG2L["TextBox_4"]["BackgroundTransparency"] = 0.7;
LMG2L["TextBox_4"].ClearTextOnFocus = false;


LMG2L["TextLabel_5"] = Instance.new("TextButton", LMG2L["TextBox_4"]); 
LMG2L["TextLabel_5"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_5"]["TextSize"] = 10;
LMG2L["TextLabel_5"]["BackgroundColor3"] = Color3.fromRGB(24, 0, 158);
LMG2L["TextLabel_5"]["FontFace"] = Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextLabel_5"]["TextColor3"] = Color3.fromRGB(0, 163, 141);
LMG2L["TextLabel_5"]["BackgroundTransparency"] = 0.5;
LMG2L["TextLabel_5"]["Size"] = UDim2.new(0, 68, 0, 42);
LMG2L["TextLabel_5"]["Text"] = [[Executor]];
LMG2L["TextLabel_5"]["Position"] = UDim2.new(0, 384, 0, -2);


LMG2L["TextLabel_6"] = Instance.new("TextButton", LMG2L["TextLabel_5"]); -- Scriptblox Button
LMG2L["TextLabel_6"]["SizeConstraint"] = Enum.SizeConstraint.RelativeXX;
LMG2L["TextLabel_6"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_6"]["BackgroundColor3"] = Color3.fromRGB(7, 40, 192);
LMG2L["TextLabel_6"]["FontFace"] = Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextLabel_6"]["TextColor3"] = Color3.fromRGB(2, 213, 186);
LMG2L["TextLabel_6"]["BackgroundTransparency"] = 0.7;
LMG2L["TextLabel_6"]["Size"] = UDim2.new(0, 68, 0, 42);
LMG2L["TextLabel_6"]["Text"] = [[Scriptblox]];
LMG2L["TextLabel_6"]["Position"] = UDim2.new(0, 2, 0, 44);


LMG2L["TextButton_7"] = Instance.new("TextButton", LMG2L["TextBox_4"]); -- Execute Button
LMG2L["TextButton_7"]["BorderSizePixel"] = 0;
LMG2L["TextButton_7"]["TextSize"] = 12;
LMG2L["TextButton_7"]["TextColor3"] = Color3.fromRGB(81, 126, 158);
LMG2L["TextButton_7"]["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
LMG2L["TextButton_7"]["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextButton_7"]["Size"] = UDim2.new(0, 196, 0, 44);
LMG2L["TextButton_7"]["Text"] = [[Execute]];
LMG2L["TextButton_7"]["Position"] = UDim2.new(0, 12, 0, 128);


LMG2L["TextButton_8"] = Instance.new("TextButton", LMG2L["TextButton_7"]); -- Clear Button
LMG2L["TextButton_8"]["BorderSizePixel"] = 0;
LMG2L["TextButton_8"]["TextSize"] = 18;
LMG2L["TextButton_8"]["TextColor3"] = Color3.fromRGB(130, 203, 255);
LMG2L["TextButton_8"]["BackgroundColor3"] = Color3.fromRGB(3, 35, 152);
LMG2L["TextButton_8"]["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextButton_8"]["Size"] = UDim2.new(0, 204, 0, 40);
LMG2L["TextButton_8"]["Text"] = [[clear]];
LMG2L["TextButton_8"]["Position"] = UDim2.new(0, 232, 0, 2);


-- Scriptblox Recreation Page Frame matching exact GUI dimensions
LMG2L["ScriptbloxPage"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["ScriptbloxPage"]["Active"] = true;
LMG2L["ScriptbloxPage"]["BorderSizePixel"] = 0;
LMG2L["ScriptbloxPage"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["ScriptbloxPage"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["ScriptbloxPage"]["Position"] = UDim2.new(0, 98, 0, 20);
LMG2L["ScriptbloxPage"].Visible = false;

local ScriptbloxTitle = Instance.new("TextLabel", LMG2L["ScriptbloxPage"]);
ScriptbloxTitle["TextWrapped"] = true;
ScriptbloxTitle["BorderSizePixel"] = 0;
ScriptbloxTitle["TextSize"] = 24;
ScriptbloxTitle["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
ScriptbloxTitle["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
ScriptbloxTitle["Size"] = UDim2.new(0, 330, 0, 36);
ScriptbloxTitle["Text"] = [[ScriptBlox Searcher ]];
ScriptbloxTitle["AutomaticSize"] = Enum.AutomaticSize.X;
ScriptbloxTitle["Position"] = UDim2.new(0, -8, 0, -12);

local BackButton = Instance.new("TextButton", ScriptbloxTitle);
BackButton["BorderSizePixel"] = 0;
BackButton["TextSize"] = 12;
BackButton["TextColor3"] = Color3.fromRGB(130, 203, 255);
BackButton["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
BackButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
BackButton["Size"] = UDim2.new(0, 100, 0, 36);
BackButton["Text"] = [[< Back Hub]];
BackButton["Position"] = UDim2.new(0, 340, 0, 0);

-- Native ScriptBlox Search Bar & Results Area
local SearchBox = Instance.new("TextBox", LMG2L["ScriptbloxPage"]);
SearchBox["Size"] = UDim2.new(0, 340, 0, 30);
SearchBox["Position"] = UDim2.new(0, 10, 0, 35);
SearchBox["PlaceholderText"] = [[Search scripts here...]];
SearchBox["Text"] = [[]];
SearchBox["TextSize"] = 14;
SearchBox["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
SearchBox["TextColor3"] = Color3.fromRGB(255, 255, 255);
SearchBox["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
SearchBox["ClearTextOnFocus"] = false;

local SearchButton = Instance.new("TextButton", LMG2L["ScriptbloxPage"]);
SearchButton["Size"] = UDim2.new(0, 94, 0, 30);
SearchButton["Position"] = UDim2.new(0, 360, 0, 35);
SearchButton["Text"] = [[Search]];
SearchButton["TextSize"] = 14;
SearchButton["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
SearchButton["TextColor3"] = Color3.fromRGB(130, 203, 255);
SearchButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

local ResultsScroll = Instance.new("ScrollingFrame", LMG2L["ScriptbloxPage"]);
ResultsScroll["Size"] = UDim2.new(0, 444, 0, 130);
ResultsScroll["Position"] = UDim2.new(0, 10, 0, 75);
ResultsScroll["BackgroundColor3"] = Color3.fromRGB(240, 240, 240);
ResultsScroll["BorderSizePixel"] = 0;
ResultsScroll["CanvasSize"] = UDim2.new(0, 0, 0, 0);
ResultsScroll["AutomaticCanvasSize"] = Enum.AutomaticSize.Y;

local UIListLayout = Instance.new("UIListLayout", ResultsScroll);
UIListLayout["SortOrder"] = Enum.SortOrder.LayoutOrder;
UIListLayout["Padding"] = UDim.new(0, 5);


-- Functional Code Logic
KeySubmit.MouseButton1Click:Connect(function()
	if KeyBox.Text == "sethtehdestroyer" then
		LMG2L["KeyFrame"].Visible = false;
		LMG2L["Frame_2"].Visible = true;
	else
		KeyBox.Text = "";
		KeyBox.PlaceholderText = "Wrong Key! Try again";
	end
end)

-- Discord Link Button Functionality (Copies link to clipboard & updates text)
DiscordButton.MouseButton1Click:Connect(function()
	local success = pcall(function()
		setclipboard("https://discord.gg/2XjebyEEFJ")
	end)
	
	if success then
		DiscordButton.Text = "Copied Link!";
		task.wait(2)
		DiscordButton.Text = "Get Key (Discord)";
	else
		DiscordButton.Text = "https://discord.gg/2XjebyEEFJ";
	end
end)

LMG2L["TextButton_7"].MouseButton1Click:Connect(function() -- Execute Button
	local success, err = pcall(function()
		local func = loadstring(LMG2L["TextBox_4"].Text)
		if func then
			func()
		end
	end)
	if not success then
		warn("Execution Error: " .. tostring(err))
	end
end)

LMG2L["TextButton_8"].MouseButton1Click:Connect(function() -- Clear Button
	LMG2L["TextBox_4"].Text = "";
end)

-- Native ScriptBlox Search Integration via HttpService / API
local HttpService = game:GetService("HttpService")

local function searchScriptBlox(query)
	-- Clear old results
	for _, child in ipairs(ResultsScroll:GetChildren()) do
		if child:IsA("Frame") then
			child:Destroy()
		end
	end
	
	local success, result = pcall(function()
		local url = "https://scriptblox.com/api/script/search?q=" .. HttpService:UrlEncode(query) .. "&page=1"
		return HttpService:JSONDecode(game:HttpGet(url))
	end)
	
	if success and result and result.result and result.result.scripts then
		for _, scriptData in ipairs(result.result.scripts) do
			local scriptFrame = Instance.new("Frame", ResultsScroll)
			scriptFrame.Size = UDim2.new(1, -10, 0, 45)
			scriptFrame.BackgroundColor3 = Color3.fromRGB(23, 26, 255)
			scriptFrame.BorderSizePixel = 0
			
			local titleLabel = Instance.new("TextLabel", scriptFrame)
			titleLabel.Size = UDim2.new(0, 320, 0, 20)
			titleLabel.Position = UDim2.new(0, 5, 0, 2)
			titleLabel.Text = scriptData.title or "Unknown Script"
			titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
			titleLabel.TextSize = 12
			titleLabel.TextXAlignment = Enum.TextXAlignment.Left
			titleLabel.BackgroundTransparency = 1
			titleLabel.FontFace = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal)
			
			local gameLabel = Instance.new("TextLabel", scriptFrame)
			gameLabel.Size = UDim2.new(0, 320, 0, 18)
			gameLabel.Position = UDim2.new(0, 5, 0, 22)
			gameLabel.Text = "Game: " .. (scriptData.game and scriptData.game.name or "Universal")
			gameLabel.TextColor3 = Color3.fromRGB(130, 203, 255)
			gameLabel.TextSize = 10
			gameLabel.TextXAlignment = Enum.TextXAlignment.Left
			gameLabel.BackgroundTransparency = 1
			gameLabel.FontFace = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal)
			
			local loadBtn = Instance.new("TextButton", scriptFrame)
			loadBtn.Size = UDim2.new(0, 85, 0, 35)
			loadBtn.Position = UDim2.new(1, -90, 0, 5)
			loadBtn.Text = "Load to Editor"
			loadBtn.TextSize = 10
			loadBtn.BackgroundColor3 = Color3.fromRGB(19, 0, 137)
			loadBtn.TextColor3 = Color3.fromRGB(130, 203, 255)
			loadBtn.FontFace = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal)
			
			loadBtn.MouseButton1Click:Connect(function()
				LMG2L["TextBox_4"].Text = scriptData.script or "-- No script source available"
				LMG2L["ScriptbloxPage"].Visible = false
				LMG2L["Frame_2"].Visible = true
			end)
		end
	else
		local errLabel = Instance.new("TextLabel", ResultsScroll)
		errLabel.Size = UDim2.new(1, 0, 0, 30)
		errLabel.Text = "No scripts found or API error."
		errLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
		errLabel.TextSize = 14
		errLabel.BackgroundTransparency = 1
	end
end

SearchButton.MouseButton1Click:Connect(function()
	searchScriptBlox(SearchBox.Text)
end)

SearchBox.FocusLost:Connect(function(enterPressed)
	if enterPressed then
		searchScriptBlox(SearchBox.Text)
	end
end)

LMG2L["TextLabel_6"].MouseButton1Click:Connect(function() -- Scriptblox Button
	LMG2L["Frame_2"].Visible = false;
	LMG2L["ScriptbloxPage"].Visible = true;
end)

BackButton.MouseButton1Click:Connect(function() -- Back Button
	LMG2L["ScriptbloxPage"].Visible = false;
	LMG2L["Frame_2"].Visible = true;
end)


-- Draggable Window Functionality
local userInputService = game:GetService("UserInputService")

local function makeDraggable(topBar, window)
	local dragging, dragInput, dragStart, startPos

	topBar.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			dragging = true
			dragStart = input.Position
			startPos = window.Position
			
			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End then
					dragging = false
				end
			end)
		end
	end)

	topBar.InputChanged:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			dragInput = input
		end
	end)

	userInputService.InputChanged:Connect(function(input)
		if input == dragInput and dragging then
			local delta = input.Position - dragStart
			window.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
		end
	end)
end

makeDraggable(KeyTitle, --[=[
 d888b  db    db d888888b      .d888b.      db      db    db  .d8b.  
88' Y8b 88    88   `88'        VP  `8D      88      88    88 d8' `8b 
88      88    88    88            odD'      88      88    88 88ooo88 
88  ooo 88    88    88          .88'        88      88    88 88~~~88 
88. ~8~ 88b  d88   .88.        j88.         88booo. 88b  d88 88   88    @uniquadev
 Y888P  ~Y8888P' Y888888P      888888D      Y88888P ~Y8888P' YP   YP  CONVERTER 

Modified with Key System, Functional Buttons, Native ScriptBlox UI Page, Draggable Window & Discord Key Link
]=]

local LMG2L = {};

LMG2L["ScreenGui_1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
LMG2L["ScreenGui_1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
LMG2L["ScreenGui_1"].ResetOnSpawn = false

-- Key System Frame
LMG2L["KeyFrame"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["KeyFrame"]["Active"] = true;
LMG2L["KeyFrame"]["BorderSizePixel"] = 0;
LMG2L["KeyFrame"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["KeyFrame"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["KeyFrame"]["Position"] = UDim2.new(0, 98, 0, 20);

local KeyTitle = Instance.new("TextLabel", LMG2L["KeyFrame"]);
KeyTitle["Size"] = UDim2.new(0, 464, 0, 36);
KeyTitle["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
KeyTitle["TextColor3"] = Color3.fromRGB(255, 255, 255);
KeyTitle["TextSize"] = 24;
KeyTitle["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
KeyTitle["Text"] = [[Dream hub - Enter Key]];

local KeyBox = Instance.new("TextBox", LMG2L["KeyFrame"]);
KeyBox["Size"] = UDim2.new(0, 300, 0, 40);
KeyBox["Position"] = UDim2.new(0, 82, 0, 50);
KeyBox["PlaceholderText"] = [[Enter Key here...]];
KeyBox["Text"] = [[]];
KeyBox["TextSize"] = 18;
KeyBox["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
KeyBox["TextColor3"] = Color3.fromRGB(255, 255, 255);
KeyBox["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

local KeySubmit = Instance.new("TextButton", LMG2L["KeyFrame"]);
KeySubmit["Size"] = UDim2.new(0, 140, 0, 35);
KeySubmit["Position"] = UDim2.new(0, 82, 0, 135);
KeySubmit["Text"] = [[Submit Key]];
KeySubmit["TextSize"] = 15;
KeySubmit["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
KeySubmit["TextColor3"] = Color3.fromRGB(130, 203, 255);
KeySubmit["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

-- Discord Key Link Button
local DiscordButton = Instance.new("TextButton", LMG2L["KeyFrame"]);
DiscordButton["Size"] = UDim2.new(0, 140, 0, 35);
DiscordButton["Position"] = UDim2.new(0, 242, 0, 135);
DiscordButton["Text"] = [[Get Key (Discord)]];
DiscordButton["TextSize"] = 15;
DiscordButton["BackgroundColor3"] = Color3.fromRGB(88, 101, 242); -- Discord Blurple theme
DiscordButton["TextColor3"] = Color3.fromRGB(255, 255, 255);
DiscordButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);


-- Main GUI Frame (Hidden initially)
LMG2L["Frame_2"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["Frame_2"]["Active"] = true;
LMG2L["Frame_2"]["BorderSizePixel"] = 0;
LMG2L["Frame_2"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["Frame_2"]["Selectable"] = true;
LMG2L["Frame_2"]["Style"] = Enum.FrameStyle.RobloxRound;
LMG2L["Frame_2"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["Frame_2"]["Position"] = UDim2.new(0, 98, 0, 20);
LMG2L["Frame_2"].Visible = false;


LMG2L["TextLabel_3"] = Instance.new("TextLabel", LMG2L["Frame_2"]);
LMG2L["TextLabel_3"]["TextWrapped"] = true;
LMG2L["TextLabel_3"]["TextTruncate"] = Enum.TextTruncate.SplitWord;
LMG2L["TextLabel_3"]["SizeConstraint"] = Enum.SizeConstraint.RelativeXX;
LMG2L["TextLabel_3"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_3"]["TextSize"] = 24;
LMG2L["TextLabel_3"]["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
LMG2L["TextLabel_3"]["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
LMG2L["TextLabel_3"]["SelectionBehaviorDown"] = Enum.SelectionBehavior.Stop;
LMG2L["TextLabel_3"]["Size"] = UDim2.new(0, 330, 0, 36);
LMG2L["TextLabel_3"]["Text"] = [[Dream hub ( imagined✨ ) ]];
LMG2L["TextLabel_3"]["AutomaticSize"] = Enum.AutomaticSize.X;
LMG2L["TextLabel_3"]["Position"] = UDim2.new(0, -8, 0, -12);


LMG2L["TextBox_4"] = Instance.new("TextBox", LMG2L["TextLabel_3"]);
LMG2L["TextBox_4"]["TextXAlignment"] = Enum.TextXAlignment.Left;
LMG2L["TextBox_4"]["BorderSizePixel"] = 0;
LMG2L["TextBox_4"]["TextSize"] = 24;
LMG2L["TextBox_4"]["TextYAlignment"] = Enum.TextYAlignment.Top;
LMG2L["TextBox_4"]["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
LMG2L["TextBox_4"]["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextBox_4"]["Size"] = UDim2.new(0, 382, 0, 124);
LMG2L["TextBox_4"]["Position"] = UDim2.new(0, 10, 0, 48);
LMG2L["TextBox_4"]["Text"] = [[Rc7 fe bypass]];
LMG2L["TextBox_4"]["BackgroundTransparency"] = 0.7;
LMG2L["TextBox_4"].ClearTextOnFocus = false;


LMG2L["TextLabel_5"] = Instance.new("TextButton", LMG2L["TextBox_4"]); 
LMG2L["TextLabel_5"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_5"]["TextSize"] = 10;
LMG2L["TextLabel_5"]["BackgroundColor3"] = Color3.fromRGB(24, 0, 158);
LMG2L["TextLabel_5"]["FontFace"] = Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextLabel_5"]["TextColor3"] = Color3.fromRGB(0, 163, 141);
LMG2L["TextLabel_5"]["BackgroundTransparency"] = 0.5;
LMG2L["TextLabel_5"]["Size"] = UDim2.new(0, 68, 0, 42);
LMG2L["TextLabel_5"]["Text"] = [[Executor]];
LMG2L["TextLabel_5"]["Position"] = UDim2.new(0, 384, 0, -2);


LMG2L["TextLabel_6"] = Instance.new("TextButton", LMG2L["TextLabel_5"]); -- Scriptblox Button
LMG2L["TextLabel_6"]["SizeConstraint"] = Enum.SizeConstraint.RelativeXX;
LMG2L["TextLabel_6"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_6"]["BackgroundColor3"] = Color3.fromRGB(7, 40, 192);
LMG2L["TextLabel_6"]["FontFace"] = Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextLabel_6"]["TextColor3"] = Color3.fromRGB(2, 213, 186);
LMG2L["TextLabel_6"]["BackgroundTransparency"] = 0.7;
LMG2L["TextLabel_6"]["Size"] = UDim2.new(0, 68, 0, 42);
LMG2L["TextLabel_6"]["Text"] = [[Scriptblox]];
LMG2L["TextLabel_6"]["Position"] = UDim2.new(0, 2, 0, 44);


LMG2L["TextButton_7"] = Instance.new("TextButton", LMG2L["TextBox_4"]); -- Execute Button
LMG2L["TextButton_7"]["BorderSizePixel"] = 0;
LMG2L["TextButton_7"]["TextSize"] = 12;
LMG2L["TextButton_7"]["TextColor3"] = Color3.fromRGB(81, 126, 158);
LMG2L["TextButton_7"]["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
LMG2L["TextButton_7"]["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextButton_7"]["Size"] = UDim2.new(0, 196, 0, 44);
LMG2L["TextButton_7"]["Text"] = [[Execute]];
LMG2L["TextButton_7"]["Position"] = UDim2.new(0, 12, 0, 128);


LMG2L["TextButton_8"] = Instance.new("TextButton", LMG2L["TextButton_7"]); -- Clear Button
LMG2L["TextButton_8"]["BorderSizePixel"] = 0;
LMG2L["TextButton_8"]["TextSize"] = 18;
LMG2L["TextButton_8"]["TextColor3"] = Color3.fromRGB(130, 203, 255);
LMG2L["TextButton_8"]["BackgroundColor3"] = Color3.fromRGB(3, 35, 152);
LMG2L["TextButton_8"]["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextButton_8"]["Size"] = UDim2.new(0, 204, 0, 40);
LMG2L["TextButton_8"]["Text"] = [[clear]];
LMG2L["TextButton_8"]["Position"] = UDim2.new(0, 232, 0, 2);


-- Scriptblox Recreation Page Frame matching exact GUI dimensions
LMG2L["ScriptbloxPage"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["ScriptbloxPage"]["Active"] = true;
LMG2L["ScriptbloxPage"]["BorderSizePixel"] = 0;
LMG2L["ScriptbloxPage"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["ScriptbloxPage"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["ScriptbloxPage"]["Position"] = UDim2.new(0, 98, 0, 20);
LMG2L["ScriptbloxPage"].Visible = false;

local ScriptbloxTitle = Instance.new("TextLabel", LMG2L["ScriptbloxPage"]);
ScriptbloxTitle["TextWrapped"] = true;
ScriptbloxTitle["BorderSizePixel"] = 0;
ScriptbloxTitle["TextSize"] = 24;
ScriptbloxTitle["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
ScriptbloxTitle["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
ScriptbloxTitle["Size"] = UDim2.new(0, 330, 0, 36);
ScriptbloxTitle["Text"] = [[ScriptBlox Searcher ]];
ScriptbloxTitle["AutomaticSize"] = Enum.AutomaticSize.X;
ScriptbloxTitle["Position"] = UDim2.new(0, -8, 0, -12);

local BackButton = Instance.new("TextButton", ScriptbloxTitle);
BackButton["BorderSizePixel"] = 0;
BackButton["TextSize"] = 12;
BackButton["TextColor3"] = Color3.fromRGB(130, 203, 255);
BackButton["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
BackButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
BackButton["Size"] = UDim2.new(0, 100, 0, 36);
BackButton["Text"] = [[< Back Hub]];
BackButton["Position"] = UDim2.new(0, 340, 0, 0);

-- Native ScriptBlox Search Bar & Results Area
local SearchBox = Instance.new("TextBox", LMG2L["ScriptbloxPage"]);
SearchBox["Size"] = UDim2.new(0, 340, 0, 30);
SearchBox["Position"] = UDim2.new(0, 10, 0, 35);
SearchBox["PlaceholderText"] = [[Search scripts here...]];
SearchBox["Text"] = [[]];
SearchBox["TextSize"] = 14;
SearchBox["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
SearchBox["TextColor3"] = Color3.fromRGB(255, 255, 255);
SearchBox["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
SearchBox["ClearTextOnFocus"] = false;

local SearchButton = Instance.new("TextButton", LMG2L["ScriptbloxPage"]);
SearchButton["Size"] = UDim2.new(0, 94, 0, 30);
SearchButton["Position"] = UDim2.new(0, 360, 0, 35);
SearchButton["Text"] = [[Search]];
SearchButton["TextSize"] = 14;
SearchButton["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
SearchButton["TextColor3"] = Color3.fromRGB(130, 203, 255);
SearchButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

local ResultsScroll = Instance.new("ScrollingFrame", LMG2L["ScriptbloxPage"]);
ResultsScroll["Size"] = UDim2.new(0, 444, 0, 130);
ResultsScroll["Position"] = UDim2.new(0, 10, 0, 75);
ResultsScroll["BackgroundColor3"] = Color3.fromRGB(240, 240, 240);
ResultsScroll["BorderSizePixel"] = 0;
ResultsScroll["CanvasSize"] = UDim2.new(0, 0, 0, 0);
ResultsScroll["AutomaticCanvasSize"] = Enum.AutomaticSize.Y;

local UIListLayout = Instance.new("UIListLayout", ResultsScroll);
UIListLayout["SortOrder"] = Enum.SortOrder.LayoutOrder;
UIListLayout["Padding"] = UDim.new(0, 5);


-- Functional Code Logic
KeySubmit.MouseButton1Click:Connect(function()
	if KeyBox.Text == "sethtehdestroyer" then
		LMG2L["KeyFrame"].Visible = false;
		LMG2L["Frame_2"].Visible = true;
	else
		KeyBox.Text = "";
		KeyBox.PlaceholderText = "Wrong Key! Try again";
	end
end)

-- Discord Link Button Functionality (Copies link to clipboard & updates text)
DiscordButton.MouseButton1Click:Connect(function()
	local success = pcall(function()
		setclipboard("https://discord.gg/2XjebyEEFJ")
	end)
	
	if success then
		DiscordButton.Text = "Copied Link!";
		task.wait(2)
		DiscordButton.Text = "Get Key (Discord)";
	else
		DiscordButton.Text = "https://discord.gg/2XjebyEEFJ";
	end
end)

LMG2L["TextButton_7"].MouseButton1Click:Connect(function() -- Execute Button
	local success, err = pcall(function()
		local func = loadstring(LMG2L["TextBox_4"].Text)
		if func then
			func()
		end
	end)
	if not success then
		warn("Execution Error: " .. tostring(err))
	end
end)

LMG2L["TextButton_8"].MouseButton1Click:Connect(function() -- Clear Button
	LMG2L["TextBox_4"].Text = "";
end)

-- Native ScriptBlox Search Integration via HttpService / API
local HttpService = game:GetService("HttpService")

local function searchScriptBlox(query)
	-- Clear old results
	for _, child in ipairs(ResultsScroll:GetChildren()) do
		if child:IsA("Frame") then
			child:Destroy()
		end
	end
	
	local success, result = pcall(function()
		local url = "https://scriptblox.com/api/script/search?q=" .. HttpService:UrlEncode(query) .. "&page=1"
		return HttpService:JSONDecode(game:HttpGet(url))
	end)
	
	if success and result and result.result and result.result.scripts then
		for _, scriptData in ipairs(result.result.scripts) do
			local scriptFrame = Instance.new("Frame", ResultsScroll)
			scriptFrame.Size = UDim2.new(1, -10, 0, 45)
			scriptFrame.BackgroundColor3 = Color3.fromRGB(23, 26, 255)
			scriptFrame.BorderSizePixel = 0
			
			local titleLabel = Instance.new("TextLabel", scriptFrame)
			titleLabel.Size = UDim2.new(0, 320, 0, 20)
			titleLabel.Position = UDim2.new(0, 5, 0, 2)
			titleLabel.Text = scriptData.title or "Unknown Script"
			titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
			titleLabel.TextSize = 12
			titleLabel.TextXAlignment = Enum.TextXAlignment.Left
			titleLabel.BackgroundTransparency = 1
			titleLabel.FontFace = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal)
			
			local gameLabel = Instance.new("TextLabel", scriptFrame)
			gameLabel.Size = UDim2.new(0, 320, 0, 18)
			gameLabel.Position = UDim2.new(0, 5, 0, 22)
			gameLabel.Text = "Game: " .. (scriptData.game and scriptData.game.name or "Universal")
			gameLabel.TextColor3 = Color3.fromRGB(130, 203, 255)
			gameLabel.TextSize = 10
			gameLabel.TextXAlignment = Enum.TextXAlignment.Left
			gameLabel.BackgroundTransparency = 1
			gameLabel.FontFace = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal)
			
			local loadBtn = Instance.new("TextButton", scriptFrame)
			loadBtn.Size = UDim2.new(0, 85, 0, 35)
			loadBtn.Position = UDim2.new(1, -90, 0, 5)
			loadBtn.Text = "Load to Editor"
			loadBtn.TextSize = 10
			loadBtn.BackgroundColor3 = Color3.fromRGB(19, 0, 137)
			loadBtn.TextColor3 = Color3.fromRGB(130, 203, 255)
			loadBtn.FontFace = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal)
			
			loadBtn.MouseButton1Click:Connect(function()
				LMG2L["TextBox_4"].Text = scriptData.script or "-- No script source available"
				LMG2L["ScriptbloxPage"].Visible = false
				LMG2L["Frame_2"].Visible = true
			end)
		end
	else
		local errLabel = Instance.new("TextLabel", ResultsScroll)
		errLabel.Size = UDim2.new(1, 0, 0, 30)
		errLabel.Text = "No scripts found or API error."
		errLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
		errLabel.TextSize = 14
		errLabel.BackgroundTransparency = 1
	end
end

SearchButton.MouseButton1Click:Connect(function()
	searchScriptBlox(SearchBox.Text)
end)

SearchBox.FocusLost:Connect(function(enterPressed)
	if enterPressed then
		searchScriptBlox(SearchBox.Text)
	end
end)

LMG2L["TextLabel_6"].MouseButton1Click:Connect(function() -- Scriptblox Button
	LMG2L["Frame_2"].Visible = false;
	LMG2L["ScriptbloxPage"].Visible = true;
end)

BackButton.MouseButton1Click:Connect(function() -- Back Button
	LMG2L["ScriptbloxPage"].Visible = false;
	LMG2L["Frame_2"].Visible = true;
end)


-- Draggable Window Functionality
local userInputService = game:GetService("UserInputService")

local function makeDraggable(topBar, window)
	local dragging, dragInput, dragStart, startPos

	topBar.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			dragging = true
			dragStart = input.Position
			startPos = window.Position
			
			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End then
					dragging = false
				end
			end)
		end
	end)

	topBar.InputChanged:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			dragInput = input
		end
	end)

	userInputService.InputChanged:Connect(function(input)
		if input == dragInput and dragging then
			local delta = input.Position - dragStart
			window.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
		end
	end)
end

makeDraggable(KeyTitle, LMG2L["KeyFrame"])
makeDraggable(LMG2L["TextLabel_3"], LMG2L["Frame_2"])
makeDraggable(ScriptbloxTitle, LMG2L["ScriptbloxPage"])

return LMG2L["ScreenGui_1"], require;
--[=[
 d888b  db    db d888888b      .d888b.      db      db    db  .d8b.  
88' Y8b 88    88   `88'        VP  `8D      88      88    88 d8' `8b 
88      88    88    88            odD'      88      88    88 88ooo88 
88  ooo 88    88    88          .88'        88      88    88 88~~~88 
88. ~8~ 88b  d88   .88.        j88.         88booo. 88b  d88 88   88    @uniquadev
 Y888P  ~Y8888P' Y888888P      888888D      Y88888P ~Y8888P' YP   YP  CONVERTER 

Modified with Key System, Functional Buttons, Native ScriptBlox UI Page, Draggable Window & Discord Key Link
]=]

local LMG2L = {};

LMG2L["ScreenGui_1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
LMG2L["ScreenGui_1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
LMG2L["ScreenGui_1"].ResetOnSpawn = false

-- Key System Frame
LMG2L["KeyFrame"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["KeyFrame"]["Active"] = true;
LMG2L["KeyFrame"]["BorderSizePixel"] = 0;
LMG2L["KeyFrame"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["KeyFrame"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["KeyFrame"]["Position"] = UDim2.new(0, 98, 0, 20);

local KeyTitle = Instance.new("TextLabel", LMG2L["KeyFrame"]);
KeyTitle["Size"] = UDim2.new(0, 464, 0, 36);
KeyTitle["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
KeyTitle["TextColor3"] = Color3.fromRGB(255, 255, 255);
KeyTitle["TextSize"] = 24;
KeyTitle["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
KeyTitle["Text"] = [[Dream hub - Enter Key]];

local KeyBox = Instance.new("TextBox", LMG2L["KeyFrame"]);
KeyBox["Size"] = UDim2.new(0, 300, 0, 40);
KeyBox["Position"] = UDim2.new(0, 82, 0, 50);
KeyBox["PlaceholderText"] = [[Enter Key here...]];
KeyBox["Text"] = [[]];
KeyBox["TextSize"] = 18;
KeyBox["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
KeyBox["TextColor3"] = Color3.fromRGB(255, 255, 255);
KeyBox["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

local KeySubmit = Instance.new("TextButton", LMG2L["KeyFrame"]);
KeySubmit["Size"] = UDim2.new(0, 140, 0, 35);
KeySubmit["Position"] = UDim2.new(0, 82, 0, 135);
KeySubmit["Text"] = [[Submit Key]];
KeySubmit["TextSize"] = 15;
KeySubmit["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
KeySubmit["TextColor3"] = Color3.fromRGB(130, 203, 255);
KeySubmit["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

-- Discord Key Link Button
local DiscordButton = Instance.new("TextButton", LMG2L["KeyFrame"]);
DiscordButton["Size"] = UDim2.new(0, 140, 0, 35);
DiscordButton["Position"] = UDim2.new(0, 242, 0, 135);
DiscordButton["Text"] = [[Get Key (Discord)]];
DiscordButton["TextSize"] = 15;
DiscordButton["BackgroundColor3"] = Color3.fromRGB(88, 101, 242); -- Discord Blurple theme
DiscordButton["TextColor3"] = Color3.fromRGB(255, 255, 255);
DiscordButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);


-- Main GUI Frame (Hidden initially)
LMG2L["Frame_2"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["Frame_2"]["Active"] = true;
LMG2L["Frame_2"]["BorderSizePixel"] = 0;
LMG2L["Frame_2"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["Frame_2"]["Selectable"] = true;
LMG2L["Frame_2"]["Style"] = Enum.FrameStyle.RobloxRound;
LMG2L["Frame_2"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["Frame_2"]["Position"] = UDim2.new(0, 98, 0, 20);
LMG2L["Frame_2"].Visible = false;


LMG2L["TextLabel_3"] = Instance.new("TextLabel", LMG2L["Frame_2"]);
LMG2L["TextLabel_3"]["TextWrapped"] = true;
LMG2L["TextLabel_3"]["TextTruncate"] = Enum.TextTruncate.SplitWord;
LMG2L["TextLabel_3"]["SizeConstraint"] = Enum.SizeConstraint.RelativeXX;
LMG2L["TextLabel_3"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_3"]["TextSize"] = 24;
LMG2L["TextLabel_3"]["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
LMG2L["TextLabel_3"]["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
LMG2L["TextLabel_3"]["SelectionBehaviorDown"] = Enum.SelectionBehavior.Stop;
LMG2L["TextLabel_3"]["Size"] = UDim2.new(0, 330, 0, 36);
LMG2L["TextLabel_3"]["Text"] = [[Dream hub ( imagined✨ ) ]];
LMG2L["TextLabel_3"]["AutomaticSize"] = Enum.AutomaticSize.X;
LMG2L["TextLabel_3"]["Position"] = UDim2.new(0, -8, 0, -12);


LMG2L["TextBox_4"] = Instance.new("TextBox", LMG2L["TextLabel_3"]);
LMG2L["TextBox_4"]["TextXAlignment"] = Enum.TextXAlignment.Left;
LMG2L["TextBox_4"]["BorderSizePixel"] = 0;
LMG2L["TextBox_4"]["TextSize"] = 24;
LMG2L["TextBox_4"]["TextYAlignment"] = Enum.TextYAlignment.Top;
LMG2L["TextBox_4"]["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
LMG2L["TextBox_4"]["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextBox_4"]["Size"] = UDim2.new(0, 382, 0, 124);
LMG2L["TextBox_4"]["Position"] = UDim2.new(0, 10, 0, 48);
LMG2L["TextBox_4"]["Text"] = [[Rc7 fe bypass]];
LMG2L["TextBox_4"]["BackgroundTransparency"] = 0.7;
LMG2L["TextBox_4"].ClearTextOnFocus = false;


LMG2L["TextLabel_5"] = Instance.new("TextButton", LMG2L["TextBox_4"]); 
LMG2L["TextLabel_5"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_5"]["TextSize"] = 10;
LMG2L["TextLabel_5"]["BackgroundColor3"] = Color3.fromRGB(24, 0, 158);
LMG2L["TextLabel_5"]["FontFace"] = Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextLabel_5"]["TextColor3"] = Color3.fromRGB(0, 163, 141);
LMG2L["TextLabel_5"]["BackgroundTransparency"] = 0.5;
LMG2L["TextLabel_5"]["Size"] = UDim2.new(0, 68, 0, 42);
LMG2L["TextLabel_5"]["Text"] = [[Executor]];
LMG2L["TextLabel_5"]["Position"] = UDim2.new(0, 384, 0, -2);


LMG2L["TextLabel_6"] = Instance.new("TextButton", LMG2L["TextLabel_5"]); -- Scriptblox Button
LMG2L["TextLabel_6"]["SizeConstraint"] = Enum.SizeConstraint.RelativeXX;
LMG2L["TextLabel_6"]["BorderSizePixel"] = 0;
LMG2L["TextLabel_6"]["BackgroundColor3"] = Color3.fromRGB(7, 40, 192);
LMG2L["TextLabel_6"]["FontFace"] = Font.new([[rbxasset://fonts/families/ComicNeueAngular.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextLabel_6"]["TextColor3"] = Color3.fromRGB(2, 213, 186);
LMG2L["TextLabel_6"]["BackgroundTransparency"] = 0.7;
LMG2L["TextLabel_6"]["Size"] = UDim2.new(0, 68, 0, 42);
LMG2L["TextLabel_6"]["Text"] = [[Scriptblox]];
LMG2L["TextLabel_6"]["Position"] = UDim2.new(0, 2, 0, 44);


LMG2L["TextButton_7"] = Instance.new("TextButton", LMG2L["TextBox_4"]); -- Execute Button
LMG2L["TextButton_7"]["BorderSizePixel"] = 0;
LMG2L["TextButton_7"]["TextSize"] = 12;
LMG2L["TextButton_7"]["TextColor3"] = Color3.fromRGB(81, 126, 158);
LMG2L["TextButton_7"]["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
LMG2L["TextButton_7"]["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextButton_7"]["Size"] = UDim2.new(0, 196, 0, 44);
LMG2L["TextButton_7"]["Text"] = [[Execute]];
LMG2L["TextButton_7"]["Position"] = UDim2.new(0, 12, 0, 128);


LMG2L["TextButton_8"] = Instance.new("TextButton", LMG2L["TextButton_7"]); -- Clear Button
LMG2L["TextButton_8"]["BorderSizePixel"] = 0;
LMG2L["TextButton_8"]["TextSize"] = 18;
LMG2L["TextButton_8"]["TextColor3"] = Color3.fromRGB(130, 203, 255);
LMG2L["TextButton_8"]["BackgroundColor3"] = Color3.fromRGB(3, 35, 152);
LMG2L["TextButton_8"]["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
LMG2L["TextButton_8"]["Size"] = UDim2.new(0, 204, 0, 40);
LMG2L["TextButton_8"]["Text"] = [[clear]];
LMG2L["TextButton_8"]["Position"] = UDim2.new(0, 232, 0, 2);


-- Scriptblox Recreation Page Frame matching exact GUI dimensions
LMG2L["ScriptbloxPage"] = Instance.new("Frame", LMG2L["ScreenGui_1"]);
LMG2L["ScriptbloxPage"]["Active"] = true;
LMG2L["ScriptbloxPage"]["BorderSizePixel"] = 0;
LMG2L["ScriptbloxPage"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
LMG2L["ScriptbloxPage"]["Size"] = UDim2.new(0, 464, 0, 222);
LMG2L["ScriptbloxPage"]["Position"] = UDim2.new(0, 98, 0, 20);
LMG2L["ScriptbloxPage"].Visible = false;

local ScriptbloxTitle = Instance.new("TextLabel", LMG2L["ScriptbloxPage"]);
ScriptbloxTitle["TextWrapped"] = true;
ScriptbloxTitle["BorderSizePixel"] = 0;
ScriptbloxTitle["TextSize"] = 24;
ScriptbloxTitle["BackgroundColor3"] = Color3.fromRGB(0, 14, 159);
ScriptbloxTitle["FontFace"] = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
ScriptbloxTitle["Size"] = UDim2.new(0, 330, 0, 36);
ScriptbloxTitle["Text"] = [[ScriptBlox Searcher ]];
ScriptbloxTitle["AutomaticSize"] = Enum.AutomaticSize.X;
ScriptbloxTitle["Position"] = UDim2.new(0, -8, 0, -12);

local BackButton = Instance.new("TextButton", ScriptbloxTitle);
BackButton["BorderSizePixel"] = 0;
BackButton["TextSize"] = 12;
BackButton["TextColor3"] = Color3.fromRGB(130, 203, 255);
BackButton["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
BackButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
BackButton["Size"] = UDim2.new(0, 100, 0, 36);
BackButton["Text"] = [[< Back Hub]];
BackButton["Position"] = UDim2.new(0, 340, 0, 0);

-- Native ScriptBlox Search Bar & Results Area
local SearchBox = Instance.new("TextBox", LMG2L["ScriptbloxPage"]);
SearchBox["Size"] = UDim2.new(0, 340, 0, 30);
SearchBox["Position"] = UDim2.new(0, 10, 0, 35);
SearchBox["PlaceholderText"] = [[Search scripts here...]];
SearchBox["Text"] = [[]];
SearchBox["TextSize"] = 14;
SearchBox["BackgroundColor3"] = Color3.fromRGB(23, 26, 255);
SearchBox["TextColor3"] = Color3.fromRGB(255, 255, 255);
SearchBox["FontFace"] = Font.new([[rbxasset://fonts/families/RomanAntique.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
SearchBox["ClearTextOnFocus"] = false;

local SearchButton = Instance.new("TextButton", LMG2L["ScriptbloxPage"]);
SearchButton["Size"] = UDim2.new(0, 94, 0, 30);
SearchButton["Position"] = UDim2.new(0, 360, 0, 35);
SearchButton["Text"] = [[Search]];
SearchButton["TextSize"] = 14;
SearchButton["BackgroundColor3"] = Color3.fromRGB(19, 0, 137);
SearchButton["TextColor3"] = Color3.fromRGB(130, 203, 255);
SearchButton["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);

local ResultsScroll = Instance.new("ScrollingFrame", LMG2L["ScriptbloxPage"]);
ResultsScroll["Size"] = UDim2.new(0, 444, 0, 130);
ResultsScroll["Position"] = UDim2.new(0, 10, 0, 75);
ResultsScroll["BackgroundColor3"] = Color3.fromRGB(240, 240, 240);
ResultsScroll["BorderSizePixel"] = 0;
ResultsScroll["CanvasSize"] = UDim2.new(0, 0, 0, 0);
ResultsScroll["AutomaticCanvasSize"] = Enum.AutomaticSize.Y;

local UIListLayout = Instance.new("UIListLayout", ResultsScroll);
UIListLayout["SortOrder"] = Enum.SortOrder.LayoutOrder;
UIListLayout["Padding"] = UDim.new(0, 5);


-- Functional Code Logic
KeySubmit.MouseButton1Click:Connect(function()
	if KeyBox.Text == "sethtehdestroyer" then
		LMG2L["KeyFrame"].Visible = false;
		LMG2L["Frame_2"].Visible = true;
	else
		KeyBox.Text = "";
		KeyBox.PlaceholderText = "Wrong Key! Try again";
	end
end)

-- Discord Link Button Functionality (Copies link to clipboard & updates text)
DiscordButton.MouseButton1Click:Connect(function()
	local success = pcall(function()
		setclipboard("https://discord.gg/2XjebyEEFJ")
	end)
	
	if success then
		DiscordButton.Text = "Copied Link!";
		task.wait(2)
		DiscordButton.Text = "Get Key (Discord)";
	else
		DiscordButton.Text = "https://discord.gg/2XjebyEEFJ";
	end
end)

LMG2L["TextButton_7"].MouseButton1Click:Connect(function() -- Execute Button
	local success, err = pcall(function()
		local func = loadstring(LMG2L["TextBox_4"].Text)
		if func then
			func()
		end
	end)
	if not success then
		warn("Execution Error: " .. tostring(err))
	end
end)

LMG2L["TextButton_8"].MouseButton1Click:Connect(function() -- Clear Button
	LMG2L["TextBox_4"].Text = "";
end)

-- Native ScriptBlox Search Integration via HttpService / API
local HttpService = game:GetService("HttpService")

local function searchScriptBlox(query)
	-- Clear old results
	for _, child in ipairs(ResultsScroll:GetChildren()) do
		if child:IsA("Frame") then
			child:Destroy()
		end
	end
	
	local success, result = pcall(function()
		local url = "https://scriptblox.com/api/script/search?q=" .. HttpService:UrlEncode(query) .. "&page=1"
		return HttpService:JSONDecode(game:HttpGet(url))
	end)
	
	if success and result and result.result and result.result.scripts then
		for _, scriptData in ipairs(result.result.scripts) do
			local scriptFrame = Instance.new("Frame", ResultsScroll)
			scriptFrame.Size = UDim2.new(1, -10, 0, 45)
			scriptFrame.BackgroundColor3 = Color3.fromRGB(23, 26, 255)
			scriptFrame.BorderSizePixel = 0
			
			local titleLabel = Instance.new("TextLabel", scriptFrame)
			titleLabel.Size = UDim2.new(0, 320, 0, 20)
			titleLabel.Position = UDim2.new(0, 5, 0, 2)
			titleLabel.Text = scriptData.title or "Unknown Script"
			titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
			titleLabel.TextSize = 12
			titleLabel.TextXAlignment = Enum.TextXAlignment.Left
			titleLabel.BackgroundTransparency = 1
			titleLabel.FontFace = Font.new([[rbxasset://fonts/families/Arimo.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal)
			
			local gameLabel = Instance.new("TextLabel", scriptFrame)
			gameLabel.Size = UDim2.new(0, 320, 0, 18)
			gameLabel.Position = UDim2.new(0, 5, 0, 22)
			gameLabel.Text = "Game: " .. (scriptData.game and scriptData.game.name or "Universal")
			gameLabel.TextColor3 = Color3.fromRGB(130, 203, 255)
			gameLabel.TextSize = 10
			gameLabel.TextXAlignment = Enum.TextXAlignment.Left
			gameLabel.BackgroundTransparency = 1
			gameLabel.FontFace = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal)
			
			local loadBtn = Instance.new("TextButton", scriptFrame)
			loadBtn.Size = UDim2.new(0, 85, 0, 35)
			loadBtn.Position = UDim2.new(1, -90, 0, 5)
			loadBtn.Text = "Load to Editor"
			loadBtn.TextSize = 10
			loadBtn.BackgroundColor3 = Color3.fromRGB(19, 0, 137)
			loadBtn.TextColor3 = Color3.fromRGB(130, 203, 255)
			loadBtn.FontFace = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal)
			
			loadBtn.MouseButton1Click:Connect(function()
				LMG2L["TextBox_4"].Text = scriptData.script or "-- No script source available"
				LMG2L["ScriptbloxPage"].Visible = false
				LMG2L["Frame_2"].Visible = true
			end)
		end
	else
		local errLabel = Instance.new("TextLabel", ResultsScroll)
		errLabel.Size = UDim2.new(1, 0, 0, 30)
		errLabel.Text = "No scripts found or API error."
		errLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
		errLabel.TextSize = 14
		errLabel.BackgroundTransparency = 1
	end
end

SearchButton.MouseButton1Click:Connect(function()
	searchScriptBlox(SearchBox.Text)
end)

SearchBox.FocusLost:Connect(function(enterPressed)
	if enterPressed then
		searchScriptBlox(SearchBox.Text)
	end
end)

LMG2L["TextLabel_6"].MouseButton1Click:Connect(function() -- Scriptblox Button
	LMG2L["Frame_2"].Visible = false;
	LMG2L["ScriptbloxPage"].Visible = true;
end)

BackButton.MouseButton1Click:Connect(function() -- Back Button
	LMG2L["ScriptbloxPage"].Visible = false;
	LMG2L["Frame_2"].Visible = true;
end)


-- Draggable Window Functionality
local userInputService = game:GetService("UserInputService")

local function makeDraggable(topBar, window)
	local dragging, dragInput, dragStart, startPos

	topBar.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			dragging = true
			dragStart = input.Position
			startPos = window.Position
			
			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End then
					dragging = false
				end
			end)
		end
	end)

	topBar.InputChanged:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			dragInput = input
		end
	end)

	userInputService.InputChanged:Connect(function(input)
		if input == dragInput and dragging then
			local delta = input.Position - dragStart
			window.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
		end
	end)
end

makeDraggable(KeyTitle, LMG2L["KeyFrame"])
makeDraggable(LMG2L["TextLabel_3"], LMG2L["Frame_2"])
makeDraggable(ScriptbloxTitle, LMG2L["ScriptbloxPage"])

return LMG2L["ScreenGui_1"], require;
["KeyFrame"])
makeDraggable(LMG2L["TextLabel_3"], LMG2L["Frame_2"])
makeDraggable(ScriptbloxTitle, LMG2L["ScriptbloxPage"])

return LMG2L["ScreenGui_1"], require;

Features & Information

It has an executor and a scriptblox page
#Hub#Ss#Executor#Backdoor

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts