--[[ Simple 150x150 Executor Menu أزرار: تشغيل (loadstring) / إيقاف / تنظيف ]] local Players = game:GetService("Players") local player = Players.LocalPlayer -- اختيار مكان العرض (CoreGui أولاً ثم PlayerGui) local parent pcall(function() parent = game:GetService("CoreGui") end) if not parent then parent = player:WaitForChild("PlayerGui") end -- حذف نسخة قديمة local old = parent:FindFirstChild("SimpleExecMenu") if old then old:Destroy() end ------------------------------------------------------------ -- الواجهة ------------------------------------------------------------ local gui = Instance.new("ScreenGui") gui.Name = "SimpleExecMenu" gui.ResetOnSpawn = false gui.IgnoreGuiInset = true gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling gui.Parent = parent local main = Instance.new("Frame") main.Name = "Main" main.Size = UDim2.fromOffset(150, 150) -- المقاس المطلوب main.Position = UDim2.new(0.5, -75, 0.5, -75) main.BackgroundColor3 = Color3.fromRGB(25, 25, 25) main.BorderSizePixel = 1 main.BorderColor3 = Color3.fromRGB(0, 170, 255) main.Active = true main.Draggable = true -- قابل للسحب main.Parent = gui -- شريط العنوان local title = Instance.new("TextLabel") title.Size = UDim2.fromOffset(150, 20) title.BackgroundColor3 = Color3.fromRGB(0, 120, 200) title.BorderSizePixel = 0 title.Text = "EXECUTOR" title.TextColor3 = Color3.fromRGB(255,255,255) title.Font = Enum.Font.SourceSansBold title.TextSize = 12 title.Parent = main -- مربع كتابة السكربت local box = Instance.new("TextBox") box.Size = UDim2.fromOffset(146, 54) box.Position = UDim2.fromOffset(2, 22) box.BackgroundColor3 = Color3.fromRGB(40, 40, 40) box.BorderSizePixel = 1 box.BorderColor3 = Color3.fromRGB(80, 80, 80) box.TextColor3 = Color3.fromRGB(230, 230, 230) box.PlaceholderText = "ضع loadstring هنا..." box.PlaceholderColor3 = Color3.fromRGB(120, 120, 120) box.Font = Enum.Font.Code box.TextSize = 11 box.TextXAlignment = Enum.TextXAlignment.Left box.TextYAlignment = Enum.TextYAlignment.Top box.TextWrapped = true box.ClearTextOnFocus = false box.MultiLine = true box.Text = "" box.Parent = main ------------------------------------------------------------ -- الأزرار ------------------------------------------------------------ local function makeButton(text, x, y, w, h, color) local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(w, h) b.Position = UDim2.fromOffset(x, y) b.BackgroundColor3 = color b.BorderSizePixel = 0 b.Text = text b.TextColor3 = Color3.fromRGB(255,255,255) b.Font = Enum.Font.SourceSansBold b.TextSize = 11 b.AutoButtonColor = true b.Parent = main return b end local playBtn = makeButton("تشغيل", 2, 80, 71, 30, Color3.fromRGB(0, 150, 0)) local stopBtn = makeButton("إيقاف", 77, 80, 71, 30, Color3.fromRGB(180, 40, 40)) local clearBtn = makeButton("تنظيف", 2, 112, 146, 30, Color3.fromRGB(70, 70, 70)) ------------------------------------------------------------ -- منطق التنفيذ ------------------------------------------------------------ local currentThread = nil local function stopThread() if currentThread then pcall(coroutine.close, currentThread) currentThread = nil end end playBtn.MouseButton1Click:Connect(function() stopThread() local code = box.Text if code == "" then return end local fn, err = loadstring(code) if not fn then warn("[Executor] خطأ في التحميل: " .. tostring(err)) return end currentThread = coroutine.create(fn) local ok, err2 = coroutine.resume(currentThread) if not ok then warn("[Executor] خطأ في التشغيل: " .. tostring(err2)) end end) stopBtn.MouseButton1Click:Connect(function() stopThread() end) clearBtn.MouseButton1Click:Connect(function() box.Text = "" end)