-- =========================================================
-- 💚 مصطفى - ULTIMATE ALL-IN-ONE HUB 💚
-- =========================================================

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LocalPlayer = Players.LocalPlayer
local pgui = LocalPlayer:WaitForChild("PlayerGui")

-- المتغيرات العامة
local IsProtected = false
local IsSpamming = false
local IsColorSpamming = false
local CurrentTarget = LocalPlayer.Name

local CharacterConnection, ProtectionLoop, SpamConnection
local TitleColorCmds = {";titler", ";titleo", ";titley", ";titleg", ";titledg", ";titleb", ";titledb", ";titlep", ";titlepk", ";titlebk"}

-- 1. إنشاء ScreenGui الأساسي
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "MustafaAllInOneHub"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = pgui

-- 2. زر M العائم للفتح والإغلاق
local ToggleBtn = Instance.new("TextButton")
ToggleBtn.Name = "ToggleBtn"
ToggleBtn.Size = UDim2.new(0, 48, 0, 48)
ToggleBtn.Position = UDim2.new(0, 15, 0.5, -24)
ToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 90)
ToggleBtn.Text = "M"
ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
ToggleBtn.TextSize = 24
ToggleBtn.Font = Enum.Font.GothamBold
ToggleBtn.Active = true
ToggleBtn.Draggable = true
ToggleBtn.Parent = ScreenGui
Instance.new("UICorner", ToggleBtn).CornerRadius = UDim.new(0, 12)
local ToggleStroke = Instance.new("UIStroke", ToggleBtn)
ToggleStroke.Color = Color3.fromRGB(255, 255, 255)
ToggleStroke.Thickness = 2

-- 3. الإطار الرئيسي الموحد (Main Hub Frame)
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 540, 0, 400)
MainFrame.Position = UDim2.new(0.5, -270, 0.5, -200)
MainFrame.BackgroundColor3 = Color3.fromRGB(15, 20, 25)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Visible = true
MainFrame.Parent = ScreenGui
Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 14)
local MainGlow = Instance.new("UIStroke", MainFrame)
MainGlow.Thickness = 2
MainGlow.Color = Color3.fromRGB(0, 220, 120)

-- شريط العنوان العلوي
local Header = Instance.new("Frame", MainFrame)
Header.Size = UDim2.new(1, 0, 0, 40)
Header.BackgroundColor3 = Color3.fromRGB(22, 30, 38)
Header.BorderSizePixel = 0
Instance.new("UICorner", Header).CornerRadius = UDim.new(0, 14)

local TitleText = Instance.new("TextLabel", Header)
TitleText.Size = UDim2.new(1, -50, 1, 0)
TitleText.Position = UDim2.new(0, 15, 0, 0)
TitleText.BackgroundTransparency = 1
TitleText.Text = "💚 مصطفى - Ultimate All-In-One Hub 💚"
TitleText.TextColor3 = Color3.fromRGB(0, 255, 140)
TitleText.Font = Enum.Font.GothamBold
TitleText.TextSize = 15
TitleText.TextXAlignment = Enum.TextXAlignment.Left

local CloseBtn = Instance.new("TextButton", Header)
CloseBtn.Size = UDim2.new(0, 30, 0, 30)
CloseBtn.Position = UDim2.new(1, -35, 0.5, -15)
CloseBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 50)
CloseBtn.Text = "X"
CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseBtn.Font = Enum.Font.GothamBold
CloseBtn.TextSize = 14
Instance.new("UICorner", CloseBtn).CornerRadius = UDim.new(0, 6)

-- 4. القائمة الجانبية اليسرى (Sidebar)
local Sidebar = Instance.new("Frame", MainFrame)
Sidebar.Name = "Sidebar"
Sidebar.Size = UDim2.new(0, 145, 1, -45)
Sidebar.Position = UDim2.new(0, 5, 0, 42)
Sidebar.BackgroundColor3 = Color3.fromRGB(20, 26, 32)
Sidebar.BorderSizePixel = 0
Instance.new("UICorner", Sidebar).CornerRadius = UDim.new(0, 10)

local SidebarList = Instance.new("UIListLayout", Sidebar)
SidebarList.SortOrder = Enum.SortOrder.LayoutOrder
SidebarList.Padding = UDim.new(0, 6)

local SidebarPadding = Instance.new("UIPadding", Sidebar)
SidebarPadding.PaddingTop = UDim.new(0, 8)
SidebarPadding.PaddingLeft = UDim.new(0, 6)
SidebarPadding.PaddingRight = UDim.new(0, 6)

-- أزرار الأقسام
local Tab1Btn = Instance.new("TextButton", Sidebar)
Tab1Btn.Size = UDim2.new(1, 0, 0, 36)
Tab1Btn.BackgroundColor3 = Color3.fromRGB(0, 150, 80)
Tab1Btn.Text = "👤 سبام اللاعبين"
Tab1Btn.TextColor3 = Color3.fromRGB(255, 255, 255)
Tab1Btn.Font = Enum.Font.GothamBold
Tab1Btn.TextSize = 12
Instance.new("UICorner", Tab1Btn).CornerRadius = UDim.new(0, 8)

local Tab2Btn = Instance.new("TextButton", Sidebar)
Tab2Btn.Size = UDim2.new(1, 0, 0, 36)
Tab2Btn.BackgroundColor3 = Color3.fromRGB(30, 40, 50)
Tab2Btn.Text = "🛡️ الحماية والضخ"
Tab2Btn.TextColor3 = Color3.fromRGB(200, 200, 200)
Tab2Btn.Font = Enum.Font.GothamBold
Tab2Btn.TextSize = 12
Instance.new("UICorner", Tab2Btn).CornerRadius = UDim.new(0, 8)

local Tab3Btn = Instance.new("TextButton", Sidebar)
Tab3Btn.Size = UDim2.new(1, 0, 0, 36)
Tab3Btn.BackgroundColor3 = Color3.fromRGB(30, 40, 50)
Tab3Btn.Text = "🎨 الألقاب والألوان"
Tab3Btn.TextColor3 = Color3.fromRGB(200, 200, 200)
Tab3Btn.Font = Enum.Font.GothamBold
Tab3Btn.TextSize = 12
Instance.new("UICorner", Tab3Btn).CornerRadius = UDim.new(0, 8)

-- 5. حاوية المحتوى على اليمين
local ContentFrame = Instance.new("Frame", MainFrame)
ContentFrame.Name = "ContentFrame"
ContentFrame.Size = UDim2.new(1, -160, 1, -45)
ContentFrame.Position = UDim2.new(0, 155, 0, 42)
ContentFrame.BackgroundTransparency = 1

-- دوال إرسال الأوامر
local function SendHDCommand(cmdText)
	pcall(function()
		ReplicatedStorage.HDAdminHDClient.Signals.RequestCommandSilent:InvokeServer(cmdText)
	end)
end

local function sendHDCommandMod(commandString)
	local args = { [1] = commandString }
	pcall(function()
		ReplicatedStorage.HDAdminHDClient.Signals.RequestCommandModification:InvokeServer(unpack(args))
	end)
end

-- ==================== نظام الحماية الاستشعاري اللحظي ====================
local protectedUnCommands = {
	";unfreeze " .. LocalPlayer.Name,
	";unjail " .. LocalPlayer.Name,
	";unice " .. LocalPlayer.Name,
	";unfrydance " .. LocalPlayer.Name,
	";unwormify " .. LocalPlayer.Name,
	";unragdoll " .. LocalPlayer.Name,
	";undog " .. LocalPlayer.Name,
	";unbox " .. LocalPlayer.Name
}

local function removeAllCommandsFromSelf()
	for _, unCmd in ipairs(protectedUnCommands) do
		sendHDCommandMod(unCmd)
	end
end

local function setupDetection(character)
	if not character then return end
	local humanoid = character:WaitForChild("Humanoid", 5)
	if not humanoid then return end

	humanoid.StateChanged:Connect(function(oldState, newState)
		if newState == Enum.HumanoidStateType.PlatformStand or newState == Enum.HumanoidStateType.Seated or newState == Enum.HumanoidStateType.Physics then
			removeAllCommandsFromSelf()
			humanoid.PlatformStand = false
			humanoid.Sit = false
		end
	end)

	humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
		if humanoid.WalkSpeed < 16 then
			removeAllCommandsFromSelf()
			humanoid.WalkSpeed = 16
		end
	end)

	character.ChildAdded:Connect(function()
		task.wait(0.02)
		removeAllCommandsFromSelf()
	end)
end

if LocalPlayer.Character then setupDetection(LocalPlayer.Character) end
LocalPlayer.CharacterAdded:Connect(setupDetection)

-- =========================================================
-- الصفحة الأولى: سبام اللاعبين مع الأوامر المدمجة (Page 1)
-- =========================================================
local Page1 = Instance.new("Frame", ContentFrame)
Page1.Name = "Page1"
Page1.Size = UDim2.new(1, 0, 1, 0)
Page1.BackgroundTransparency = 1
Page1.Visible = true

local creditLabel = Instance.new("TextLabel", Page1)
creditLabel.Name = "CreditLabel"
creditLabel.Size = UDim2.new(1, 0, 0, 16)
creditLabel.Position = UDim2.new(0, 0, 0, 2)
creditLabel.BackgroundTransparency = 1
creditLabel.Text = "مصمم السكربت جعفر"
creditLabel.TextColor3 = Color3.fromRGB(0, 255, 140)
creditLabel.TextSize = 11
creditLabel.Font = Enum.Font.SourceSansItalic

local searchBox = Instance.new("TextBox", Page1)
searchBox.Name = "SearchBox"
searchBox.Size = UDim2.new(0.96, 0, 0, 28)
searchBox.Position = UDim2.new(0, 0, 0, 22)
searchBox.PlaceholderText = "بحث عن لاعب..."
searchBox.Text = ""
searchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
searchBox.BackgroundColor3 = Color3.fromRGB(25, 35, 45)
searchBox.Font = Enum.Font.SourceSans
searchBox.TextSize = 13
Instance.new("UICorner", searchBox).CornerRadius = UDim.new(0, 6)

local playerListFrame = Instance.new("ScrollingFrame", Page1)
playerListFrame.Name = "PlayerList"
playerListFrame.Size = UDim2.new(0.96, 0, 1, -56)
playerListFrame.Position = UDim2.new(0, 0, 0, 54)
playerListFrame.BackgroundTransparency = 1
playerListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
playerListFrame.ScrollBarThickness = 4

local uiListLayout = Instance.new("UIListLayout", playerListFrame)
uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder
uiListLayout.Padding = UDim.new(0, 6)

local activeSpam = {}
local updatePlayerListTab1

local function updatePlayerListTab1()
	for _, child in pairs(playerListFrame:GetChildren()) do
		if child:IsA("TextButton") then child:Destroy() end
	end

	local searchText = string.lower(searchBox.Text)

	for _, player in pairs(Players:GetPlayers()) do
		local playerName = string.lower(player.Name)
		local playerDisplayName = string.lower(player.DisplayName)
		
		if searchText == "" or string.find(playerName, searchText) or string.find(playerDisplayName, searchText) then
			local btn = Instance.new("TextButton", playerListFrame)
			btn.Size = UDim2.new(1, 0, 0, 30)
			btn.Font = Enum.Font.SourceSansBold
			btn.TextSize = 13
			Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 5)

			local targetName = player.Name
			if activeSpam[targetName] then
				btn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
				btn.Text = "سبام شغال: " .. player.DisplayName
				btn.TextColor3 = Color3.fromRGB(255, 255, 255)
			else
				btn.BackgroundColor3 = Color3.fromRGB(0, 150, 60)
				btn.Text = player.DisplayName .. " (" .. player.Name .. ")"
				btn.TextColor3 = Color3.fromRGB(255, 255, 255)
			end

			btn.MouseButton1Click:Connect(function()
				if activeSpam[targetName] then
					activeSpam[targetName] = false
					game:GetService("StarterGui"):SetCore("SendNotification", {
						Title = "مصطفى Admin",
						Text = "تم إيقاف السبام عن: " .. targetName,
						Duration = 2
					})
					updatePlayerListTab1()
					return
				end
				
				activeSpam[targetName] = true
				btn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
				btn.Text = "سبام شغال: " .. player.DisplayName

				task.spawn(function()
					while activeSpam[targetName] and player.Parent do
						-- تم دمج أمر cmdbar مع بقية الأوامر لتتنفذ على اللاعب المستهدف تلقائياً
						local targetCommands = {
							";cmdbar " .. targetName,
							";kill " .. targetName,
							";jail " .. targetName,
							";ice " .. targetName,
							";frydance " .. targetName,
							";wormify " .. targetName,
							";explode " .. targetName,
							";loopwarp " .. targetName,
							";dog " .. targetName,
							";box " .. targetName,
							";nightvision " .. targetName,
							";chatlogs",
							";clog"
						}

						for _, cmd in ipairs(targetCommands) do
							if not activeSpam[targetName] then break end
							sendHDCommandMod(cmd)
							task.wait(0.12)
						end
						task.wait(0.2)
					end
				end)
				
				game:GetService("StarterGui"):SetCore("SendNotification", {
					Title = "مصطفى Admin",
					Text = "بدأ السبام المباشر وفتح الـ CmdBar على: " .. targetName,
					Duration = 2
				})
			end)
		end
	end
	
	task.defer(function()
		playerListFrame.CanvasSize = UDim2.new(0, 0, 0, uiListLayout.AbsoluteContentSize.Y + 10)
	end)
end

searchBox:GetPropertyChangedSignal("Text"):Connect(updatePlayerListTab1)

-- =========================================================
-- الصفحة الثانية: الحماية والضخ (Page 2)
-- =========================================================
local Page2 = Instance.new("Frame", ContentFrame)
Page2.Name = "Page2"
Page2.Size = UDim2.new(1, 0, 1, 0)
Page2.BackgroundTransparency = 1
Page2.Visible = false

local ProtectionBtn = Instance.new("TextButton", Page2)
ProtectionBtn.Size = UDim2.new(0.95, 0, 0, 42)
ProtectionBtn.Position = UDim2.new(0, 0, 0, 10)
ProtectionBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 45)
ProtectionBtn.Text = "تفعيل حماية ADF المتقدمة 🛡️"
ProtectionBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
ProtectionBtn.Font = Enum.Font.GothamBold
ProtectionBtn.TextSize = 13
Instance.new("UICorner", ProtectionBtn).CornerRadius = UDim.new(0, 8)
local ProtStroke = Instance.new("UIStroke", ProtectionBtn)
ProtStroke.Color = Color3.fromRGB(100, 100, 120)

local InputBox = Instance.new("TextBox", Page2)
InputBox.Size = UDim2.new(0.95, 0, 0, 38)
InputBox.Position = UDim2.new(0, 0, 0, 65)
InputBox.PlaceholderText = "اكتب النص المراد ضخه هنا..."
InputBox.Text = ""
InputBox.TextColor3 = Color3.fromRGB(255, 255, 255)
InputBox.BackgroundColor3 = Color3.fromRGB(25, 35, 30)
InputBox.Font = Enum.Font.Gotham
InputBox.TextSize = 13
Instance.new("UICorner", InputBox).CornerRadius = UDim.new(0, 8)

local SpammerStartBtn = Instance.new("TextButton", Page2)
SpammerStartBtn.Size = UDim2.new(0.46, 0, 0, 40)
SpammerStartBtn.Position = UDim2.new(0, 0, 0, 115)
SpammerStartBtn.BackgroundColor3 = Color3.fromRGB(20, 140, 60)
SpammerStartBtn.Text = "تفعيل الضخ 🚀"
SpammerStartBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
SpammerStartBtn.Font = Enum.Font.GothamBold
SpammerStartBtn.TextSize = 13
Instance.new("UICorner", SpammerStartBtn).CornerRadius = UDim.new(0, 8)

local SpammerStopBtn = Instance.new("TextButton", Page2)
SpammerStopBtn.Size = UDim2.new(0.46, 0, 0, 40)
SpammerStopBtn.Position = UDim2.new(0.49, 0, 0, 115)
SpammerStopBtn.BackgroundColor3 = Color3.fromRGB(160, 30, 50)
SpammerStopBtn.Text = "إيقاف الضخ 🛑"
SpammerStopBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
SpammerStopBtn.Font = Enum.Font.GothamBold
SpammerStopBtn.TextSize = 13
Instance.new("UICorner", SpammerStopBtn).CornerRadius = UDim.new(0, 8)

-- =========================================================
-- الصفحة الثالثة: الألقاب والألوان (Page 3)
-- =========================================================
local Page3 = Instance.new("Frame", ContentFrame)
Page3.Name = "Page3"
Page3.Size = UDim2.new(1, 0, 1, 0)
Page3.BackgroundTransparency = 1
Page3.Visible = false

local TitleInputBox = Instance.new("TextBox", Page3)
TitleInputBox.Size = UDim2.new(0.95, 0, 0, 35)
TitleInputBox.Position = UDim2.new(0, 0, 0, 5)
TitleInputBox.PlaceholderText = "اكتب النص المراد وضعه فوق الرأس..."
TitleInputBox.Text = ""
TitleInputBox.TextColor3 = Color3.fromRGB(255, 255, 255)
TitleInputBox.BackgroundColor3 = Color3.fromRGB(25, 45, 35)
TitleInputBox.Font = Enum.Font.Gotham
TitleInputBox.TextSize = 13
Instance.new("UICorner", TitleInputBox).CornerRadius = UDim.new(0, 8)

local SpamColorsBtn = Instance.new("TextButton", Page3)
SpamColorsBtn.Size = UDim2.new(0.95, 0, 0, 36)
SpamColorsBtn.Position = UDim2.new(0, 0, 0, 46)
SpamColorsBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
SpamColorsBtn.Text = "🔥 تشغيل سبام الألوان 🔥"
SpamColorsBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
SpamColorsBtn.Font = Enum.Font.GothamBold
SpamColorsBtn.TextSize = 13
Instance.new("UICorner", SpamColorsBtn).CornerRadius = UDim.new(0, 8)

local SelectAllBtn = Instance.new("TextButton", Page3)
SelectAllBtn.Size = UDim2.new(0.95, 0, 0, 32)
SelectAllBtn.Position = UDim2.new(0, 0, 0, 88)
SelectAllBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 200)
SelectAllBtn.Text = "👥 تطبيق وتغيير لون الـ كـل (All)"
SelectAllBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
SelectAllBtn.Font = Enum.Font.GothamBold
SelectAllBtn.TextSize = 12
Instance.new("UICorner", SelectAllBtn).CornerRadius = UDim.new(0, 8)

local PlayerListFrameTab3 = Instance.new("ScrollingFrame", Page3)
PlayerListFrameTab3.Size = UDim2.new(0.95, 0, 0, 190)
PlayerListFrameTab3.Position = UDim2.new(0, 0, 0, 126)
PlayerListFrameTab3.BackgroundTransparency = 1
PlayerListFrameTab3.CanvasSize = UDim2.new(0, 0, 0, 0)
PlayerListFrameTab3.ScrollBarThickness = 4

local ListLayout3 = Instance.new("UIListLayout", PlayerListFrameTab3)
ListLayout3.SortOrder = Enum.SortOrder.LayoutOrder
ListLayout3.Padding = UDim.new(0, 4)

-- ---------------------------------------------------------
-- التنقل بين التبويبات
-- ---------------------------------------------------------
local function SwitchTab(tabIndex)
	Page1.Visible = (tabIndex == 1)
	Page2.Visible = (tabIndex == 2)
	Page3.Visible = (tabIndex == 3)
	
	Tab1Btn.BackgroundColor3 = (tabIndex == 1) and Color3.fromRGB(0, 150, 80) or Color3.fromRGB(30, 40, 50)
	Tab1Btn.TextColor3 = (tabIndex == 1) and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(200, 200, 200)
	
	Tab2Btn.BackgroundColor3 = (tabIndex == 2) and Color3.fromRGB(0, 150, 80) or Color3.fromRGB(30, 40, 50)
	Tab2Btn.TextColor3 = (tabIndex == 2) and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(200, 200, 200)
	
	Tab3Btn.BackgroundColor3 = (tabIndex == 3) and Color3.fromRGB(0, 150, 80) or Color3.fromRGB(30, 40, 50)
	Tab3Btn.TextColor3 = (tabIndex == 3) and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(200, 200, 200)
end

Tab1Btn.MouseButton1Click:Connect(function() SwitchTab(1) end)
Tab2Btn.MouseButton1Click:Connect(function() SwitchTab(2) end)
Tab3Btn.MouseButton1Click:Connect(function() SwitchTab(3) end)

ToggleBtn.MouseButton1Click:Connect(function() MainFrame.Visible = not MainFrame.Visible end)
CloseBtn.MouseButton1Click:Connect(function() MainFrame.Visible = false end)

-- ---------------------------------------------------------
-- برمجة الحماية والضخ العادي (Page 2)
-- ---------------------------------------------------------
SpammerStartBtn.MouseButton1Click:Connect(function()
	if IsSpamming then return end
	IsSpamming = true
	SpammerStartBtn.Text = "جاري الضخ..."
	SpammerStartBtn.BackgroundColor3 = Color3.fromRGB(40, 80, 50)
	
	SpamConnection = RunService.Heartbeat:Connect(function()
		local txt = InputBox.Text
		if txt ~= "" then SendHDCommand(txt) end
	end)
end)

SpammerStopBtn.MouseButton1Click:Connect(function()
	IsSpamming = false
	SpammerStartBtn.Text = "تفعيل الضخ 🚀"
	SpammerStartBtn.BackgroundColor3 = Color3.fromRGB(20, 140, 60)
	if SpamConnection then SpamConnection:Disconnect() SpamConnection = nil end
end)

ProtectionBtn.MouseButton1Click:Connect(function()
	if IsProtected then
		IsProtected = false
		ProtectionBtn.Text = "تفعيل حماية ADF المتقدمة 🛡️"
		ProtectionBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 45)
		ProtStroke.Color = Color3.fromRGB(100, 100, 120)
		if CharacterConnection then CharacterConnection:Disconnect() end
		if ProtectionLoop then ProtectionLoop:Disconnect() end
	else
		IsProtected = true
		ProtectionBtn.Text = "الحماية نشطة بالكامل 🛡️"
		ProtectionBtn.BackgroundColor3 = Color3.fromRGB(60, 15, 110)
		ProtStroke.Color = Color3.fromRGB(180, 50, 255)

		ProtectionLoop = RunService.Heartbeat:Connect(function()
			pcall(function()
				local Interface = LocalPlayer.PlayerGui:FindFirstChild("HDAdminInterface") or LocalPlayer.PlayerGui:FindFirstChild("HDAdminGui")
				if Interface then Interface:Destroy() end
				
				for _, gui in pairs(LocalPlayer.PlayerGui:GetDescendants()) do
					local name = string.lower(gui.Name)
					if string.find(name, "log") or string.find(name, "clog") or string.find(name, "nightvision") then
						gui:Destroy()
					end
				end
			end)
		end)

		local function MonitorChar(char)
			if not char then return end
			local hum = char:WaitForChild("Humanoid", 5)
			if hum then
				hum.Died:Connect(function()
					if IsProtected then SendHDCommand(";re") end
				end)
			end
		end

		if LocalPlayer.Character then MonitorChar(LocalPlayer.Character) end
		CharacterConnection = LocalPlayer.CharacterAdded:Connect(MonitorChar)
	end
end)

-- ---------------------------------------------------------
-- برمجة سبام الألوان واللاعبين (Page 3)
-- ---------------------------------------------------------
task.spawn(function()
	local idx = 1
	while true do
		if IsColorSpamming then
			local txt = TitleInputBox.Text
			if txt ~= "" then
				SendHDCommand(TitleColorCmds[idx] .. " " .. CurrentTarget .. " " .. txt)
				idx = idx + 1
				if idx > #TitleColorCmds then idx = 1 end
			end
		end
		task.wait(0.15)
	end
end)

SpamColorsBtn.MouseButton1Click:Connect(function()
	IsColorSpamming = not IsColorSpamming
	if IsColorSpamming then
		SpamColorsBtn.BackgroundColor3 = Color3.fromRGB(40, 180, 70)
		SpamColorsBtn.Text = "🛑 إيقاف سبام الألوان"
	else
		SpamColorsBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
		SpamColorsBtn.Text = "🔥 تشغيل سبام الألوان 🔥"
	end
end)

SelectAllBtn.MouseButton1Click:Connect(function()
	CurrentTarget = "all"
	game:GetService("StarterGui"):SetCore("SendNotification", {
		Title = "💚 مصطفى 💚",
		Text = "تم التحديد على الجميع (All) بنجاح!",
		Duration = 2
	})
end)

local function UpdatePlayerListTab3()
	for _, child in pairs(PlayerListFrameTab3:GetChildren()) do
		if child:IsA("TextButton") then child:Destroy() end
	end

	for _, player in pairs(Players:GetPlayers()) do
		local pBtn = Instance.new("TextButton", PlayerListFrameTab3)
		pBtn.Size = UDim2.new(1, 0, 0, 26)
		
		if player == LocalPlayer then
			pBtn.BackgroundColor3 = Color3.fromRGB(0, 160, 90)
			pBtn.Text = "👤 اسمي (" .. player.DisplayName .. ")"
		else
			pBtn.BackgroundColor3 = Color3.fromRGB(30, 45, 40)
			pBtn.Text = player.DisplayName .. " (@" .. player.Name .. ")"
		end
		
		pBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
		pBtn.Font = Enum.Font.GothamBold
		pBtn.TextSize = 11
		Instance.new("UICorner", pBtn).CornerRadius = UDim.new(0, 5)

		pBtn.MouseButton1Click:Connect(function()
			CurrentTarget = player.Name
			game:GetService("StarterGui"):SetCore("SendNotification", {
				Title = "💚 مصطفى 💚",
				Text = "تم اختيار اللاعب: " .. player.DisplayName,
				Duration = 2
			})
		end)
	end
	
	task.defer(function()
		PlayerListFrameTab3.CanvasSize = UDim2.new(0, 0, 0, ListLayout3.AbsoluteContentSize.Y + 10)
	end)
end

Players.PlayerAdded:Connect(function(player)
	task.wait(0.1)
	updatePlayerListTab1()
	UpdatePlayerListTab3()
end)

Players.PlayerRemoving:Connect(function(player)
	if activeSpam[player.Name] then activeSpam[player.Name] = false end
	task.wait(0.1)
	updatePlayerListTab1()
	UpdatePlayerListTab3()
end)

task.spawn(updatePlayerListTab1)
task.spawn(UpdatePlayerListTab3)
فعاليات رسم العرب | شات 💬 Legendary Copy Script - سكربت نسخ اسطوري
942 views
2 months ago

Legendary Copy Script - سكربت نسخ اسطوري

WORKING
Free

Description

[English]

Script for the “Legendary Arab Art” event to copy commands

[Arabic]

سكربت ما فعالياتالرسمالعرب اسطوري لنسخ اوامر

Related Scripts