Script Executor Update 2026 Studio
Key RequiredUniversal

Script Executor Update 2026 Studio

Universal ScriptMyntyPawsMyntyPaws 86 views 633 executesUpdated Aug 23, 2026
Unrated
00
Lua Script•151 lines (4722 chars)
-- LocalScript (Pasang di StarterGui atau StarterPlayerScripts)
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")

-- 1. ScreenGui Utama
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "ExecutorGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = PlayerGui

-- 2. Frame Utama
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 480, 0, 300)
mainFrame.Position = UDim2.new(0.5, -240, 0.5, -150)
mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Draggable = true
mainFrame.Parent = screenGui

local mainCorner = Instance.new("UICorner")
mainCorner.CornerRadius = UDim.new(0, 8)
mainCorner.Parent = mainFrame

-- Top Bar
local titleLabel = Instance.new("TextLabel")
titleLabel.Size = UDim2.new(1, -40, 0, 30)
titleLabel.Position = UDim2.new(0, 10, 0, 0)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "Script Executor"
titleLabel.TextColor3 = Color3.fromRGB(180, 180, 180)
titleLabel.TextSize = 14
titleLabel.Font = Enum.Font.SourceSans
titleLabel.TextXAlignment = Enum.TextXAlignment.Center
titleLabel.Parent = mainFrame

local closeBtn = Instance.new("TextButton")
closeBtn.Size = UDim2.new(0, 30, 0, 30)
closeBtn.Position = UDim2.new(1, -30, 0, 0)
closeBtn.BackgroundTransparency = 1
closeBtn.Text = "X"
closeBtn.TextColor3 = Color3.fromRGB(200, 200, 200)
closeBtn.TextSize = 14
closeBtn.Font = Enum.Font.SourceSansBold
closeBtn.Parent = mainFrame

closeBtn.MouseButton1Click:Connect(function()
	mainFrame.Visible = false
end)

-- 3. Code Editor Box
local editorFrame = Instance.new("Frame")
editorFrame.Size = UDim2.new(1, -20, 0, 210)
editorFrame.Position = UDim2.new(0, 10, 0, 35)
editorFrame.BackgroundColor3 = Color3.fromRGB(12, 12, 12)
editorFrame.BorderSizePixel = 0
editorFrame.Parent = mainFrame

local editorCorner = Instance.new("UICorner")
editorCorner.CornerRadius = UDim.new(0, 8)
editorCorner.Parent = editorFrame

local editorStroke = Instance.new("UIStroke")
editorStroke.Color = Color3.fromRGB(0, 140, 255)
editorStroke.Thickness = 2
editorStroke.Parent = editorFrame

local codeTextBox = Instance.new("TextBox")
codeTextBox.Size = UDim2.new(1, -20, 1, -20)
codeTextBox.Position = UDim2.new(0, 10, 0, 10)
codeTextBox.BackgroundTransparency = 1
codeTextBox.Text = "Client Environment"
codeTextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
codeTextBox.TextSize = 15
codeTextBox.Font = Enum.Font.Code
codeTextBox.TextXAlignment = Enum.TextXAlignment.Left
codeTextBox.TextYAlignment = Enum.TextYAlignment.Top
codeTextBox.ClearTextOnFocus = false
codeTextBox.MultiLine = true
codeTextBox.Parent = editorFrame

-- 4. Tombol Utama (Execute -> Clear -> Export -> Import)
local buttonContainer = Instance.new("Frame")
buttonContainer.Size = UDim2.new(1, -20, 0, 35)
buttonContainer.Position = UDim2.new(0, 10, 1, -45)
buttonContainer.BackgroundTransparency = 1
buttonContainer.Parent = mainFrame

local UIListLayout = Instance.new("UIListLayout")
UIListLayout.FillDirection = Enum.FillDirection.Horizontal
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.Padding = UDim.new(0, 8)
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Parent = buttonContainer

local function createButton(name, text, order)
	local btn = Instance.new("TextButton")
	btn.Name = name
	btn.LayoutOrder = order
	btn.Size = UDim2.new(0.23, 0, 1, 0)
	btn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
	btn.BorderSizePixel = 0
	btn.Text = text
	btn.TextColor3 = Color3.fromRGB(255, 255, 255)
	btn.TextSize = 14
	btn.Font = Enum.Font.SourceSansBold
	btn.Parent = buttonContainer

	local btnCorner = Instance.new("UICorner")
	btnCorner.CornerRadius = UDim.new(0, 6)
	btnCorner.Parent = btn

	return btn
end

local executeBtn = createButton("1_ExecuteBtn", "Execute", 1)
local clearBtn   = createButton("2_ClearBtn", "Clear", 2)
local exportBtn  = createButton("3_ExportBtn", "Export", 3)
local importBtn  = createButton("4_ImportBtn", "Import", 4)

-- Logika Tombol
executeBtn.MouseButton1Click:Connect(function()
	local code = codeTextBox.Text
	if code ~= "" then
		local func, err = loadstring(code)
		if func then
			task.spawn(func)
		else
			warn("Script Error:", err)
		end
	end
end)

clearBtn.MouseButton1Click:Connect(function()
	codeTextBox.Text = ""
end)

exportBtn.MouseButton1Click:Connect(function()
	if setclipboard then
		setclipboard(codeTextBox.Text)
		print("Code copied to clipboard!")
	else
		print("Exported Code:\n" .. codeTextBox.Text)
	end
end)

importBtn.MouseButton1Click:Connect(function()
	codeTextBox.Text = "print('Script Loaded!')"
end)

Features & Information

Try running it. Why is there a problem? Just ask me.

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts