-- LocalScript inside StarterPlayerScripts

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")

-- 1. إنشاء الواجهة GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "MustafaAdminGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")

-- ==================== رسالة التحذير الكبيرة (10 ثوانٍ) ====================
local warningFrame = Instance.new("Frame")
warningFrame.Name = "WarningFrame"
warningFrame.Size = UDim2.new(0, 420, 0, 160)
warningFrame.Position = UDim2.new(0.5, -210, 0.4, -80)
warningFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
warningFrame.BackgroundTransparency = 0.1
warningFrame.BorderSizePixel = 0
warningFrame.Parent = screenGui

local warningCorner = Instance.new("UICorner")
warningCorner.CornerRadius = UDim.new(0, 12)
warningCorner.Parent = warningFrame

local warningStroke = Instance.new("UIStroke")
warningStroke.Color = Color3.fromRGB(255, 50, 50)
warningStroke.Thickness = 3
warningStroke.Parent = warningFrame

local warningTitle = Instance.new("TextLabel")
warningTitle.Size = UDim2.new(1, 0, 0, 40)
warningTitle.BackgroundTransparency = 1
warningTitle.Text = "⚠️ تـحـذيـر هـام ⚠️"
warningTitle.TextColor3 = Color3.fromRGB(255, 60, 60)
warningTitle.TextSize = 22
warningTitle.Font = Enum.Font.SourceSansBold
warningTitle.Parent = warningFrame

local warningText = Instance.new("TextLabel")
warningText.Size = UDim2.new(0.9, 0, 0, 60)
warningText.Position = UDim2.new(0.05, 0, 0, 45)
warningText.BackgroundTransparency = 1
warningText.Text = "انتبه لا تشغل اكثر من سكربت وإلا راح يعلق السيرفر!"
warningText.TextColor3 = Color3.fromRGB(255, 255, 255)
warningText.TextSize = 18
warningText.TextWrapped = true
warningText.Font = Enum.Font.SourceSansBold
warningText.Parent = warningFrame

local closeWarnBtn = Instance.new("TextButton")
closeWarnBtn.Size = UDim2.new(0, 120, 0, 30)
closeWarnBtn.Position = UDim2.new(0.5, -60, 0.8, -15)
closeWarnBtn.BackgroundColor3 = Color3.fromRGB(200, 40, 40)
closeWarnBtn.Text = "موافق / فهمت"
closeWarnBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
closeWarnBtn.Font = Enum.Font.SourceSansBold
closeWarnBtn.TextSize = 14
closeWarnBtn.Parent = warningFrame

local closeBtnCorner = Instance.new("UICorner")
closeBtnCorner.CornerRadius = UDim.new(0, 6)
closeBtnCorner.Parent = closeWarnBtn

closeWarnBtn.MouseButton1Click:Connect(function()
	warningFrame:Destroy()
end)

task.delay(10, function()
	if warningFrame and warningFrame.Parent then
		warningFrame:Destroy()
	end
end)
-- ==============================================================================

-- زر فتح وإغلاق السكريبت (M)
local toggleBtn = Instance.new("TextButton")
toggleBtn.Name = "ToggleBtn"
toggleBtn.Size = UDim2.new(0, 35, 0, 35)
toggleBtn.Position = UDim2.new(0, 10, 0.5, -80)
toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 200, 80)
toggleBtn.Text = "M"
toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleBtn.TextSize = 18
toggleBtn.Font = Enum.Font.SourceSansBold
toggleBtn.Parent = screenGui

local toggleCorner = Instance.new("UICorner")
toggleCorner.CornerRadius = UDim.new(0, 8)
toggleCorner.Parent = toggleBtn

-- الإطار الرئيسي (أخضر شفاف)
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 220, 0, 345)
mainFrame.Position = UDim2.new(0, 50, 0.5, -170)
mainFrame.BackgroundColor3 = Color3.fromRGB(0, 255, 100)
mainFrame.BackgroundTransparency = 0.4
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Draggable = true
mainFrame.Visible = true
mainFrame.Parent = screenGui

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 10)
corner.Parent = mainFrame

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

-- العنوان الرئيسي: 💚مصطفى💚
local titleLabel = Instance.new("TextLabel")
titleLabel.Name = "Title"
titleLabel.Size = UDim2.new(1, 0, 0, 30)
titleLabel.Position = UDim2.new(0, 0, 0, 20)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "💚مصطفى💚"
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.TextSize = 18
titleLabel.Font = Enum.Font.SourceSansBold
titleLabel.Parent = mainFrame

-- زر تشغيل وإيقاف الحماية الذاتية
local protectionToggleBtn = Instance.new("TextButton")
protectionToggleBtn.Name = "ProtectionToggleBtn"
protectionToggleBtn.Size = UDim2.new(0.9, 0, 0, 28)
protectionToggleBtn.Position = UDim2.new(0.05, 0, 0, 52)
protectionToggleBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
protectionToggleBtn.BackgroundTransparency = 0.2
protectionToggleBtn.Text = "🛡️ الحماية: معطلة"
protectionToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
protectionToggleBtn.Font = Enum.Font.SourceSansBold
protectionToggleBtn.TextSize = 13
protectionToggleBtn.Parent = mainFrame

local protCorner = Instance.new("UICorner")
protCorner.CornerRadius = UDim.new(0, 6)
protCorner.Parent = protectionToggleBtn

-- مربع البحث
local searchBox = Instance.new("TextBox")
searchBox.Name = "SearchBox"
searchBox.Size = UDim2.new(0.9, 0, 0, 28)
searchBox.Position = UDim2.new(0.05, 0, 0, 85)
searchBox.PlaceholderText = "بحث عن لاعب..."
searchBox.Text = ""
searchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
searchBox.BackgroundColor3 = Color3.fromRGB(0, 100, 40)
searchBox.BackgroundTransparency = 0.3
searchBox.Font = Enum.Font.SourceSans
searchBox.TextSize = 14
searchBox.Parent = mainFrame

local searchCorner = Instance.new("UICorner")
searchCorner.CornerRadius = UDim.new(0, 6)
searchCorner.Parent = searchBox

-- قائمة اللاعبين
local playerListFrame = Instance.new("ScrollingFrame")
playerListFrame.Name = "PlayerList"
playerListFrame.Size = UDim2.new(0.9, 0, 0, 215)
playerListFrame.Position = UDim2.new(0.05, 0, 0, 120)
playerListFrame.BackgroundTransparency = 1
playerListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
playerListFrame.ScrollBarThickness = 4
playerListFrame.Parent = mainFrame

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

-- زر M للفتح والإغلاق
toggleBtn.MouseButton1Click:Connect(function()
	mainFrame.Visible = not mainFrame.Visible
end)

-- دالة إرسال الأوامر عبر RequestCommandSilent
local function sendHDCommand(commandString)
	local args = {
		[1] = commandString
	}
	pcall(function()
		ReplicatedStorage.HDAdminHDClient.Signals.RequestCommandSilent:InvokeServer(unpack(args))
	end)
end

-- ==================== نظام الاستجابة الفورية المباشرة ====================
local isProtectionEnabled = false

local clearCommands = {
	";unnv me",
	";unjail me",
	";unice me",
	";unlogs me",
	";unclogs me",
	";unwormify me",
	";unfryDance me",
	";untitleg me"
}

-- دالة تطلق جميع أوامر الإلغاء فوراً في نفس اللحظة
local function triggerInstantClean()
	if not isProtectionEnabled then return end
	task.spawn(function()
		for _, cmd in ipairs(clearCommands) do
			sendHDCommand(cmd)
		end
	end)
end

protectionToggleBtn.MouseButton1Click:Connect(function()
	isProtectionEnabled = not isProtectionEnabled
	if isProtectionEnabled then
		protectionToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 70)
		protectionToggleBtn.Text = "🛡️ الحماية: شـغـالـة (فورية)"
		
		game:GetService("StarterGui"):SetCore("SendNotification", {
			Title = "مصطفى Admin",
			Text = "تم تفعيل الاستجابة اللحظية الفورية!",
			Duration = 2
		})
	else
		protectionToggleBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
		protectionToggleBtn.Text = "🛡️ الحماية: معطلة"
		
		game:GetService("StarterGui"):SetCore("SendNotification", {
			Title = "مصطفى Admin",
			Text = "تم إيقاف الحماية",
			Duration = 2
		})
	end
end)

-- استشعار أي إشارة أو إضافة على اللاعب للتنظيف الفوري
local function setupDetection(character)
	if not character then return end
	local humanoid = character:WaitForChild("Humanoid", 5)
	if not humanoid then return end

	-- 1. أول ما يضاف أي مجسم أو تأثير داخل Character
	character.ChildAdded:Connect(function()
		triggerInstantClean()
	end)

	-- 2. أول ما تتغير حالة الشخصية (جلس، تجمد، طاح)
	humanoid.StateChanged:Connect(function(oldState, newState)
		if newState == Enum.HumanoidStateType.Seated or newState == Enum.HumanoidStateType.PlatformStand then
			triggerInstantClean()
			humanoid.PlatformStand = false
			humanoid.Sit = false
		end
	end)

	-- 3. أول ما تتغير السرعة أو تنزل عن الطبيعي
	humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
		if humanoid.WalkSpeed < 16 then
			triggerInstantClean()
			humanoid.WalkSpeed = 16
		end
	end)
end

-- 4. أول ما تفتح أي واجهة لوجات جديدة في الشاشة
LocalPlayer:WaitForChild("PlayerGui").ChildAdded:Connect(function(gui)
	if isProtectionEnabled then
		triggerInstantClean()
	end
end)

-- 5. كشف إذا تم بناء سجن في Workspace خارجي باسمك
workspace.ChildAdded:Connect(function(child)
	if isProtectionEnabled and string.find(string.lower(child.Name), string.lower(LocalPlayer.Name)) then
		triggerInstantClean()
	end
end)

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

-- جدول تتبع السبام
local activeSpam = {}
local updatePlayerList

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

	task.spawn(function()
		while activeSpam[targetName] and targetPlayer.Parent do
			local targetCommands = {
				";logs " .. targetName,
				";chatlogs " .. targetName,
				";kill " .. targetName,
				";jail " .. targetName,
				";ice " .. targetName,
				";frydance " .. targetName,
				";wormify " .. targetName,
				";titleg " .. targetName .. " اه🥵🥵",
				";explode " .. targetName,
				";loopwarp " .. targetName,
				";dog " .. targetName,
				";box " .. targetName
			}

			for _, cmd in ipairs(targetCommands) do
				if not activeSpam[targetName] then break end
				sendHDCommand(cmd)
				task.wait(0.12)
			end
			
			task.wait(0.2)
		end
	end)
	
	game:GetService("StarterGui"):SetCore("SendNotification", {
		Title = "مصطفى Admin",
		Text = "بدأ السبام المباشر على: " .. targetName,
		Duration = 2
	})
end

-- تحديث قائمة اللاعبين
updatePlayerList = function()
	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")
			btn.Size = UDim2.new(1, 0, 0, 28)
			btn.BackgroundTransparency = 0.3
			btn.Font = Enum.Font.SourceSans
			btn.TextSize = 13
			btn.Parent = playerListFrame

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

			if activeSpam[player.Name] 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, 50)
				btn.Text = player.DisplayName .. " (" .. player.Name .. ")"
				btn.TextColor3 = Color3.fromRGB(255, 255, 255)
			end

			btn.MouseButton1Click:Connect(function()
				executeAdminSpam(player, btn)
			end)
		end
	end
	
	task.defer(function()
		playerListFrame.CanvasSize = UDim2.new(0, 0, 0, uiListLayout.AbsoluteContentSize.Y + 10)
	end)
end

searchBox:GetPropertyChangedSignal("Text"):Connect(updatePlayerList)
Players.PlayerAdded:Connect(function()
	task.wait(0.1)
	updatePlayerList()
end)
Players.PlayerRemoving:Connect(function(player)
	if activeSpam[player.Name] then
		activeSpam[player.Name] = false
	end
	task.wait(0.1)
	updatePlayerList()
end)

task.spawn(updatePlayerList)
Universal Script 🎭
undefined Arabic Drawing Event - سكربت فعاليات الرسم العرب
593views
4 months ago

Arabic Drawing Event - سكربت فعاليات الرسم العرب

Author
User Avatar
JAFR
Status
Working
Price
Free

Description

A Roblox script for Arab Drawing Events featuring an admin GUI, instant protection system, player search, and HD Admin command automation

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

Related Scripts