Lua Executor
Key RequiredUniversal

Lua Executor

Universal Scriptsavedesire42hahahasavedesire42hahaha 539 views 49 executesUpdated Dec 29, 2025
Unrated
00
Lua Script•214 lines (6094 chars)
--// Secure Code Runner with Minimize + Drag
--// Key: Randomgees

local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local Player = Players.LocalPlayer

local KEY = "Randomgees"

local function trim(s)
	return string.match(s, "^%s*(.-)%s*$")
end

-- ScreenGui
local gui = Instance.new("ScreenGui")
gui.ResetOnSpawn = false
gui.Parent = Player:WaitForChild("PlayerGui")

--------------------------------------------------
-- KEY FRAME
--------------------------------------------------

local keyFrame = Instance.new("Frame")
keyFrame.Size = UDim2.fromScale(0.35, 0.3)
keyFrame.Position = UDim2.fromScale(0.325, 0.35)
keyFrame.BackgroundColor3 = Color3.fromRGB(25,25,25)
keyFrame.Parent = gui
Instance.new("UICorner", keyFrame).CornerRadius = UDim.new(0,20)

local keyTitle = Instance.new("TextLabel")
keyTitle.Size = UDim2.new(1,0,0,50)
keyTitle.BackgroundTransparency = 1
keyTitle.Text = "Enter Access Key"
keyTitle.Font = Enum.Font.GothamBold
keyTitle.TextSize = 24
keyTitle.TextColor3 = Color3.new(1,1,1)
keyTitle.Parent = keyFrame

local keyBox = Instance.new("TextBox")
keyBox.Size = UDim2.new(1,-40,0,45)
keyBox.Position = UDim2.new(0,20,0,70)
keyBox.PlaceholderText = "Key"
keyBox.ClearTextOnFocus = false
keyBox.Font = Enum.Font.Gotham
keyBox.TextSize = 18
keyBox.TextColor3 = Color3.new(1,1,1)
keyBox.BackgroundColor3 = Color3.fromRGB(35,35,35)
keyBox.Parent = keyFrame
Instance.new("UICorner", keyBox).CornerRadius = UDim.new(0,12)

local unlock = Instance.new("TextButton")
unlock.Size = UDim2.new(1,-40,0,45)
unlock.Position = UDim2.new(0,20,0,130)
unlock.Text = "UNLOCK"
unlock.Font = Enum.Font.GothamBold
unlock.TextSize = 20
unlock.TextColor3 = Color3.new(1,1,1)
unlock.BackgroundColor3 = Color3.fromRGB(70,130,255)
unlock.Parent = keyFrame
Instance.new("UICorner", unlock).CornerRadius = UDim.new(0,14)

--------------------------------------------------
-- RUNNER FRAME
--------------------------------------------------

local runner = Instance.new("Frame")
runner.Size = UDim2.fromScale(0.45,0.5)
runner.Position = UDim2.fromScale(0.275,0.25)
runner.BackgroundColor3 = Color3.fromRGB(25,25,25)
runner.Visible = false
runner.Parent = gui
Instance.new("UICorner", runner).CornerRadius = UDim.new(0,20)

-- Title
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1,-60,0,50)
title.Position = UDim2.new(0,10,0,0)
title.BackgroundTransparency = 1
title.Text = "Lua Code Runner"
title.Font = Enum.Font.GothamBold
title.TextSize = 26
title.TextColor3 = Color3.new(1,1,1)
title.Parent = runner

-- X Button
local close = Instance.new("TextButton")
close.Size = UDim2.new(0,40,0,40)
close.Position = UDim2.new(1,-45,0,5)
close.Text = "✕"
close.Font = Enum.Font.GothamBold
close.TextSize = 24
close.TextColor3 = Color3.new(1,1,1)
close.BackgroundColor3 = Color3.fromRGB(200,70,70)
close.Parent = runner
Instance.new("UICorner", close).CornerRadius = UDim.new(1,0)

-- Code Box
local codeBox = Instance.new("TextBox")
codeBox.Size = UDim2.new(1,-40,1,-130)
codeBox.Position = UDim2.new(0,20,0,70)
codeBox.MultiLine = true
codeBox.ClearTextOnFocus = false
codeBox.TextWrapped = true
codeBox.TextXAlignment = Enum.TextXAlignment.Left
codeBox.TextYAlignment = Enum.TextYAlignment.Top
codeBox.Text = "-- Lua code here"
codeBox.Font = Enum.Font.Code
codeBox.TextSize = 16
codeBox.TextColor3 = Color3.new(1,1,1)
codeBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
codeBox.Parent = runner
Instance.new("UICorner", codeBox).CornerRadius = UDim.new(0,12)

-- Run Button
local run = Instance.new("TextButton")
run.Size = UDim2.new(1,-40,0,45)
run.Position = UDim2.new(0,20,1,-55)
run.Text = "RUN"
run.Font = Enum.Font.GothamBold
run.TextSize = 20
run.TextColor3 = Color3.new(1,1,1)
run.BackgroundColor3 = Color3.fromRGB(60,200,120)
run.Parent = runner
Instance.new("UICorner", run).CornerRadius = UDim.new(0,14)

--------------------------------------------------
-- MINIMIZED ICON
--------------------------------------------------

local icon = Instance.new("TextButton")
icon.Size = UDim2.new(0,55,0,55)
icon.Position = UDim2.new(0,20,0.5,-30)
icon.Text = "▶"
icon.Font = Enum.Font.GothamBold
icon.TextSize = 26
icon.TextColor3 = Color3.new(1,1,1)
icon.BackgroundColor3 = Color3.fromRGB(70,130,255)
icon.Visible = false
icon.Parent = gui
Instance.new("UICorner", icon).CornerRadius = UDim.new(1,0)

--------------------------------------------------
-- DRAG HANDLE (BOTTOM-RIGHT CORNER)
--------------------------------------------------

local dragHandle = Instance.new("Frame")
dragHandle.Size = UDim2.new(0,25,0,25)
dragHandle.Position = UDim2.new(1,-25,1,-25)
dragHandle.BackgroundColor3 = Color3.fromRGB(80,80,80)
dragHandle.Parent = runner
Instance.new("UICorner", dragHandle).CornerRadius = UDim.new(0,6)

--------------------------------------------------
-- LOGIC
--------------------------------------------------

unlock.MouseButton1Click:Connect(function()
	if trim(keyBox.Text) == KEY then
		keyFrame.Visible = false
		runner.Visible = true
	end
end)

close.MouseButton1Click:Connect(function()
	runner.Visible = false
	icon.Visible = true
end)

icon.MouseButton1Click:Connect(function()
	icon.Visible = false
	runner.Visible = true
end)

-- Dragging
local dragging = false
local startPos, startInput

dragHandle.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		dragging = true
		startPos = runner.Position
		startInput = input.Position
	end
end)

UIS.InputChanged:Connect(function(input)
	if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
		local delta = input.Position - startInput
		runner.Position = UDim2.new(
			startPos.X.Scale,
			startPos.X.Offset + delta.X,
			startPos.Y.Scale,
			startPos.Y.Offset + delta.Y
		)
	end
end)

UIS.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		dragging = false
	end
end)

-- Run Code
run.MouseButton1Click:Connect(function()
	if loadstring then
		local f, err = loadstring(codeBox.Text)
		if f then
			task.spawn(f)
		else
			warn(err)
		end
	end
end)

Features & Information

Its a executor. Yep. . - X button - Works - Universal - and in fact, YOU can make this too!!
#hub

Community Comments (1)

savedesire42hahahasavedesire42hahahaDec 29, 2025

Yep, the key is Randomgees

More Scripts for Universal Scripts