--[[
Project: Delta Custom Executor GUI (Fixed Syntax Highlighting & Custom Assets)
Made by: inDMNoaa & innNoaa
--]]
local Players = game:GetService("Players")
local CoreGui = game:GetService("CoreGui")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local HttpService = game:GetService("HttpService")
local Player = Players.LocalPlayer
-- Anti-Detection & Anti-Cheat Basic Hook
pcall(function()
local mt = getrawmetatable(game)
setreadonly(mt, false)
local old = mt.__namecall
mt.__namecall = newcclosure(function(self, ...)
local method = getnamecallmethod()
if method == "Kick" or method == "kick" then
if self == Player then
return nil
end
end
return old(self, ...)
end)
setreadonly(mt, true)
end)
local CONFIG_FILE = "inDMNoaa_DeltaConfig_v4.json"
if CoreGui:FindFirstChild("DeltaCustomExecutor_inDMNoaa") then
CoreGui.DeltaCustomExecutor_inDMNoaa:Destroy()
end
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "DeltaCustomExecutor_inDMNoaa"
ScreenGui.Parent = CoreGui
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
-- Tombol Toggle Buka/Tutup
local ToggleButton = Instance.new("ImageButton")
ToggleButton.Name = "ToggleButton"
ToggleButton.Parent = ScreenGui
ToggleButton.BackgroundColor3 = Color3.fromRGB(35, 35, 45)
ToggleButton.BorderColor3 = Color3.fromRGB(60, 60, 80)
ToggleButton.Position = UDim2.new(0, 25, 0, 100)
ToggleButton.Size = UDim2.new(0, 52, 0, 52)
ToggleButton.Image = "rbxassetid://10150755786"
ToggleButton.Draggable = true
ToggleButton.Active = true
local UICornerToggle = Instance.new("UICorner")
UICornerToggle.CornerRadius = UDim.new(0, 14)
UICornerToggle.Parent = ToggleButton
-- Frame Utama Executor
local MainFrame = Instance.new("ImageLabel")
MainFrame.Name = "MainFrame"
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 25)
MainFrame.BackgroundTransparency = 0.05
MainFrame.Image = "rbxassetid://95548626731105"
MainFrame.ScaleType = Enum.ScaleType.Slice
MainFrame.SliceCenter = Rect.new(100, 100, 100, 100)
MainFrame.Position = UDim2.new(0.5, -235, 0.5, -150)
MainFrame.Size = UDim2.new(0, 470, 0, 300)
MainFrame.Visible = true
MainFrame.Active = true
MainFrame.ClipsDescendants = true
local UICornerMain = Instance.new("UICorner")
UICornerMain.CornerRadius = UDim.new(0, 12)
UICornerMain.Parent = MainFrame
-- Top Bar (Untuk Geser Frame)
local TopBar = Instance.new("Frame")
TopBar.Name = "TopBar"
TopBar.Parent = MainFrame
TopBar.BackgroundTransparency = 1
TopBar.Size = UDim2.new(1, 0, 0, 40)
local TitleLabel = Instance.new("TextLabel")
TitleLabel.Parent = TopBar
TitleLabel.BackgroundTransparency = 1
TitleLabel.Position = UDim2.new(0, 15, 0, 0)
TitleLabel.Size = UDim2.new(0, 350, 1, 0)
TitleLabel.Font = Enum.Font.GothamBold
TitleLabel.Text = "Delta Executor | inDMNoaa & innNoaa"
TitleLabel.TextColor3 = Color3.fromRGB(235, 235, 250)
TitleLabel.TextSize = 13
TitleLabel.TextXAlignment = Enum.TextXAlignment.Left
-- Container Editor Skrip
local EditorContainer = Instance.new("ScrollingFrame")
EditorContainer.Name = "EditorContainer"
EditorContainer.Parent = MainFrame
EditorContainer.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
EditorContainer.BackgroundTransparency = 0.3
EditorContainer.Position = UDim2.new(0, 15, 0, 45)
EditorContainer.Size = UDim2.new(0, 440, 0, 185)
EditorContainer.CanvasSize = UDim2.new(0, 0, 0, 0)
EditorContainer.ScrollBarThickness = 4
local UICornerContainer = Instance.new("UICorner")
UICornerContainer.CornerRadius = UDim.new(0, 8)
UICornerContainer.Parent = EditorContainer
-- TextBox Utama untuk Input & Pewarnaan Langsung
local ScriptBox = Instance.new("TextBox")
ScriptBox.Name = "ScriptBox"
ScriptBox.Parent = EditorContainer
ScriptBox.BackgroundTransparency = 1
ScriptBox.Position = UDim2.new(0, 5, 0, 5)
ScriptBox.Size = UDim2.new(1, -10, 1, -10)
ScriptBox.ClearTextOnFocus = false
ScriptBox.Font = Enum.Font.Code
ScriptBox.MultiLine = true
ScriptBox.ClearTextOnFocus = false
ScriptBox.PlaceholderText = "-- Tulis atau paste skrip luau di sini..."
ScriptBox.Text = ""
ScriptBox.TextColor3 = Color3.fromRGB(210, 230, 255)
ScriptBox.TextSize = 13
ScriptBox.RichText = true
ScriptBox.TextXAlignment = Enum.TextXAlignment.Left
ScriptBox.TextYAlignment = Enum.TextYAlignment.Top
local UIStrokeBox = Instance.new("UIStroke")
UIStrokeBox.Color = Color3.fromRGB(45, 45, 65)
UIStrokeBox.Parent = EditorContainer
-- Fungsi Pewarnaan Syntax Otomatis yang Dioptimalkan untuk TextBox
local function applyHighlight(box)
local rawText = box.Text
-- MencegahInfinite Loop saat mengubah teks
if box:GetAttribute("Formatting") then return end
box:SetAttribute("Formatting", true)
local text = rawText:gsub("&", "&"):gsub("<", "<"):gsub(">", ">")
-- Komentar (Abu-abu)
text = text:gsub("(%-%-[^\n]*)", '%1')
-- String / Teks (Oranye)
text = text:gsub('(\"[^\"]-\")', '%1')
text = text:gsub("(\'[^\']-\')", '%1')
-- Keywords Luau (Ungu)
local keywords = {"local", "function", "end", "if", "then", "else", "elseif", "do", "while", "for", "in", "repeat", "until", "return", "break", "true", "false", "nil", "and", "or", "not", "pcall", "xpcall"}
for _, word in ipairs(keywords) do
text = text:gsub("([^%w_])(" .. word .. ")([^%w_])", '%1%2%3')
end
-- Angka (Hijau Terang)
text = text:gsub("([^%w_])(%d+%.?%d*)([^%w_])", '%1%2%3')
box.Text = text
box:SetAttribute("Formatting", nil)
end
-- Tombol Execute
local ExecuteBtn = Instance.new("ImageButton")
ExecuteBtn.Name = "ExecuteBtn"
ExecuteBtn.Parent = MainFrame
ExecuteBtn.BackgroundColor3 = Color3.fromRGB(0, 136, 255)
ExecuteBtn.Position = UDim2.new(0, 15, 0, 245)
ExecuteBtn.Size = UDim2.new(0, 115, 0, 38)
ExecuteBtn.Image = "rbxassetid://10844111755"
ExecuteBtn.ScaleType = Enum.ScaleType.Fit
local ExecText = Instance.new("TextLabel")
ExecText.Parent = ExecuteBtn
ExecText.BackgroundTransparency = 1
ExecText.Size = UDim2.new(1, 0, 1, 0)
ExecText.Font = Enum.Font.GothamBold
ExecText.Text = "Execute"
ExecText.TextColor3 = Color3.fromRGB(255, 255, 255)
ExecText.TextSize = 12
local UICornerExec = Instance.new("UICorner")
UICornerExec.CornerRadius = UDim.new(0, 8)
UICornerExec.Parent = ExecuteBtn
-- Tombol Clear
local ClearBtn = Instance.new("ImageButton")
ClearBtn.Name = "ClearBtn"
ClearBtn.Parent = MainFrame
ClearBtn.BackgroundColor3 = Color3.fromRGB(220, 50, 50)
ClearBtn.Position = UDim2.new(0, 140, 0, 245)
ClearBtn.Size = UDim2.new(0, 85, 0, 38)
ClearBtn.Image = "rbxassetid://8597399061"
ClearBtn.ScaleType = Enum.ScaleType.Fit
local ClearText = Instance.new("TextLabel")
ClearText.Parent = ClearBtn
ClearText.BackgroundTransparency = 1
ClearText.Size = UDim2.new(1, 0, 1, 0)
ClearText.Font = Enum.Font.GothamBold
ClearText.Text = "Clear [X]"
ClearText.TextColor3 = Color3.fromRGB(255, 255, 255)
ClearText.TextSize = 11
local UICornerClear = Instance.new("UICorner")
UICornerClear.CornerRadius = UDim.new(0, 8)
UICornerClear.Parent = ClearBtn
-- Tombol Save Config
local SaveBtn = Instance.new("ImageButton")
SaveBtn.Name = "SaveBtn"
SaveBtn.Parent = MainFrame
SaveBtn.BackgroundColor3 = Color3.fromRGB(40, 180, 90)
SaveBtn.Position = UDim2.new(0, 235, 0, 245)
SaveBtn.Size = UDim2.new(0, 115, 0, 38)
SaveBtn.Image = "rbxassetid://93350197775177"
SaveBtn.ScaleType = Enum.ScaleType.Fit
local SaveText = Instance.new("TextLabel")
SaveText.Parent = SaveBtn
SaveText.BackgroundTransparency = 1
SaveText.Size = UDim2.new(1, 0, 1, 0)
SaveText.Font = Enum.Font.GothamBold
SaveText.Text = "📥 Save"
SaveText.TextColor3 = Color3.fromRGB(255, 255, 255)
SaveText.TextSize = 12
local UICornerSave = Instance.new("UICorner")
UICornerSave.CornerRadius = UDim.new(0, 8)
UICornerSave.Parent = SaveBtn
local StatusLabel = Instance.new("TextLabel")
StatusLabel.Parent = MainFrame
StatusLabel.BackgroundTransparency = 1
StatusLabel.Position = UDim2.new(0, 360, 0, 245)
StatusLabel.Size = UDim2.new(0, 95, 0, 38)
StatusLabel.Font = Enum.Font.GothamMedium
StatusLabel.Text = "Ready"
StatusLabel.TextColor3 = Color3.fromRGB(170, 170, 190)
StatusLabel.TextSize = 11
-- Fungsi Dragging
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 = MainFrame.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.MouseMovement 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
MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
end)
-- Animasi Buka/Tutup Smooth
local isOpen = true
local isAnimating = false
ToggleButton.MouseButton1Click:Connect(function()
if isAnimating then return end
isAnimating = true
if isOpen then
local tweenOut = TweenService:Create(MainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {
Size = UDim2.new(0, 0, 0, 0),
Position = MainFrame.Position + UDim2.new(0, 235, 0, 150)
})
tweenOut:Play()
tweenOut.Completed:Wait()
MainFrame.Visible = false
isOpen = false
else
MainFrame.Visible = true
MainFrame.Size = UDim2.new(0, 0, 0, 0)
MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
local tweenIn = TweenService:Create(MainFrame, TweenInfo.new(0.4, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {
Size = UDim2.new(0, 470, 0, 300),
Position = UDim2.new(0.5, -235, 0.5, -150)
})
tweenIn:Play()
tweenIn.Completed:Wait()
isOpen = true
end
isAnimating = false
end)
-- Load Config Otomatis
pcall(function()
if readfile and isfile and isfile(CONFIG_FILE) then
local content = readfile(CONFIG_FILE)
local data = HttpService:JSONDecode(content)
if data and data.savedScript then
ScriptBox.Text = data.savedScript
StatusLabel.Text = "Loaded!"
end
end
end)
-- Tombol Save Config
SaveBtn.MouseButton1Click:Connect(function()
pcall(function()
if writefile then
local data = {
savedScript = ScriptBox.Text
}
writefile(CONFIG_FILE, HttpService:JSONEncode(data))
StatusLabel.Text = "Saved!"
task.delay(2, function()
StatusLabel.Text = "Ready"
end)
else
StatusLabel.Text = "No IO"
end
end)
end)
-- Tombol Clear
ClearBtn.MouseButton1Click:Connect(function()
ScriptBox.Text = ""
StatusLabel.Text = "Ready"
end)
-- Tombol Execute
ExecuteBtn.MouseButton1Click:Connect(function()
local codeToRun = ScriptBox.Text
if codeToRun and codeToRun ~= "" then
local success, func = pcall(function()
return loadstring(codeToRun)
end)
if success and type(func) == "function" then
local runSuccess, runErr = pcall(func)
if runSuccess then
StatusLabel.Text = "Executed!"
else
StatusLabel.Text = "Err Script"
end
else
StatusLabel.Text = "Syntax Err"
end
task.delay(2, function()
StatusLabel.Text = "Ready"
end)
else
StatusLabel.Text = "Empty!"
task.delay(1.5, function()
StatusLabel.Text = "Ready"
end)
end
end)
print("Delta Custom Executor GUI (by inDMNoaa & innNoaa) Loaded Successfully!")