-- 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)A Roblox script for Arab Drawing Events featuring an admin GUI, instant protection system, player search, and HD Admin command automation
سكربت فعاليات الرسم العرب نسخ
No comments yet. Be the first to comment!
1-- LocalScript inside StarterPlayerScripts
2
3local Players = game:GetService("Players")
4local LocalPlayer = Players.LocalPlayer
5local ReplicatedStorage = game:GetService("ReplicatedStorage")
6
7-- 1. إنشاء الواجهة GUI
8local screenGui = Instance.new("ScreenGui")
9screenGui.Name = "MustafaAdminGui"
10screenGui.ResetOnSpawn = false
11screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
12
13-- ==================== رسالة التحذير الكبيرة (10 ثوانٍ) ====================
14local warningFrame = Instance.new("Frame")
15warningFrame.Name = "WarningFrame"
16warningFrame.Size = UDim2.new(0, 420, 0, 160)
17warningFrame.Position = UDim2.new(0.5, -210, 0.4, -80)
18warningFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
19warningFrame.BackgroundTransparency = 0.1
20warningFrame.BorderSizePixel = 0
21warningFrame.Parent = screenGui
22
23local warningCorner = Instance.new("UICorner")
24warningCorner.CornerRadius = UDim.new(0, 12)
25warningCorner.Parent = warningFrame
26
27local warningStroke = Instance.new("UIStroke")
28warningStroke.Color = Color3.fromRGB(255, 50, 50)
29warningStroke.Thickness = 3
30warningStroke.Parent = warningFrame
31
32local warningTitle = Instance.new("TextLabel")
33warningTitle.Size = UDim2.new(1, 0, 0, 40)
34warningTitle.BackgroundTransparency = 1
35warningTitle.Text = "⚠️ تـحـذيـر هـام ⚠️"
36warningTitle.TextColor3 = Color3.fromRGB(255, 60, 60)
37warningTitle.TextSize = 22
38warningTitle.Font = Enum.Font.SourceSansBold
39warningTitle.Parent = warningFrame
40
41local warningText = Instance.new("TextLabel")
42warningText.Size = UDim2.new(0.9, 0, 0, 60)
43warningText.Position = UDim2.new(0.05, 0, 0, 45)
44warningText.BackgroundTransparency = 1
45warningText.Text = "انتبه لا تشغل اكثر من سكربت وإلا راح يعلق السيرفر!"
46warningText.TextColor3 = Color3.fromRGB(255, 255, 255)
47warningText.TextSize = 18
48warningText.TextWrapped = true
49warningText.Font = Enum.Font.SourceSansBold
50warningText.Parent = warningFrame
51
52local closeWarnBtn = Instance.new("TextButton")
53closeWarnBtn.Size = UDim2.new(0, 120, 0, 30)
54closeWarnBtn.Position = UDim2.new(0.5, -60, 0.8, -15)
55closeWarnBtn.BackgroundColor3 = Color3.fromRGB(200, 40, 40)
56closeWarnBtn.Text = "موافق / فهمت"
57closeWarnBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
58closeWarnBtn.Font = Enum.Font.SourceSansBold
59closeWarnBtn.TextSize = 14
60closeWarnBtn.Parent = warningFrame
61
62local closeBtnCorner = Instance.new("UICorner")
63closeBtnCorner.CornerRadius = UDim.new(0, 6)
64closeBtnCorner.Parent = closeWarnBtn
65
66closeWarnBtn.MouseButton1Click:Connect(function()
67 warningFrame:Destroy()
68end)
69
70task.delay(10, function()
71 if warningFrame and warningFrame.Parent then
72 warningFrame:Destroy()
73 end
74end)
75-- ==============================================================================
76
77-- زر فتح وإغلاق السكريبت (M)
78local toggleBtn = Instance.new("TextButton")
79toggleBtn.Name = "ToggleBtn"
80toggleBtn.Size = UDim2.new(0, 35, 0, 35)
81toggleBtn.Position = UDim2.new(0, 10, 0.5, -80)
82toggleBtn.BackgroundColor3 = Color3.fromRGB(0, 200, 80)
83toggleBtn.Text = "M"
84toggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
85toggleBtn.TextSize = 18
86toggleBtn.Font = Enum.Font.SourceSansBold
87toggleBtn.Parent = screenGui
88
89local toggleCorner = Instance.new("UICorner")
90toggleCorner.CornerRadius = UDim.new(0, 8)
91toggleCorner.Parent = toggleBtn
92
93-- الإطار الرئيسي (أخضر شفاف)
94local mainFrame = Instance.new("Frame")
95mainFrame.Name = "MainFrame"
96mainFrame.Size = UDim2.new(0, 220, 0, 345)
97mainFrame.Position = UDim2.new(0, 50, 0.5, -170)
98mainFrame.BackgroundColor3 = Color3.fromRGB(0, 255, 100)
99mainFrame.BackgroundTransparency = 0.4
100mainFrame.BorderSizePixel = 0
101mainFrame.Active = true
102mainFrame.Draggable = true
103mainFrame.Visible = true
104mainFrame.Parent = screenGui
105
106local corner = Instance.new("UICorner")
107corner.CornerRadius = UDim.new(0, 10)
108corner.Parent = mainFrame
109
110-- مصمم السكربت جعفر
111local creditLabel = Instance.new("TextLabel")
112creditLabel.Name = "CreditLabel"
113creditLabel.Size = UDim2.new(1, 0, 0, 20)
114creditLabel.Position = UDim2.new(0, 0, 0, 2)
115creditLabel.BackgroundTransparency = 1
116creditLabel.Text = "مصمم السكربت جعفر"
117creditLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
118creditLabel.TextSize = 11
119creditLabel.Font = Enum.Font.SourceSansItalic
120creditLabel.Parent = mainFrame
121
122-- العنوان الرئيسي: 💚مصطفى💚
123local titleLabel = Instance.new("TextLabel")
124titleLabel.Name = "Title"
125titleLabel.Size = UDim2.new(1, 0, 0, 30)
126titleLabel.Position = UDim2.new(0, 0, 0, 20)
127titleLabel.BackgroundTransparency = 1
128titleLabel.Text = "💚مصطفى💚"
129titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
130titleLabel.TextSize = 18
131titleLabel.Font = Enum.Font.SourceSansBold
132titleLabel.Parent = mainFrame
133
134-- زر تشغيل وإيقاف الحماية الذاتية
135local protectionToggleBtn = Instance.new("TextButton")
136protectionToggleBtn.Name = "ProtectionToggleBtn"
137protectionToggleBtn.Size = UDim2.new(0.9, 0, 0, 28)
138protectionToggleBtn.Position = UDim2.new(0.05, 0, 0, 52)
139protectionToggleBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
140protectionToggleBtn.BackgroundTransparency = 0.2
141protectionToggleBtn.Text = "🛡️ الحماية: معطلة"
142protectionToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
143protectionToggleBtn.Font = Enum.Font.SourceSansBold
144protectionToggleBtn.TextSize = 13
145protectionToggleBtn.Parent = mainFrame
146
147local protCorner = Instance.new("UICorner")
148protCorner.CornerRadius = UDim.new(0, 6)
149protCorner.Parent = protectionToggleBtn
150
151-- مربع البحث
152local searchBox = Instance.new("TextBox")
153searchBox.Name = "SearchBox"
154searchBox.Size = UDim2.new(0.9, 0, 0, 28)
155searchBox.Position = UDim2.new(0.05, 0, 0, 85)
156searchBox.PlaceholderText = "بحث عن لاعب..."
157searchBox.Text = ""
158searchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
159searchBox.BackgroundColor3 = Color3.fromRGB(0, 100, 40)
160searchBox.BackgroundTransparency = 0.3
161searchBox.Font = Enum.Font.SourceSans
162searchBox.TextSize = 14
163searchBox.Parent = mainFrame
164
165local searchCorner = Instance.new("UICorner")
166searchCorner.CornerRadius = UDim.new(0, 6)
167searchCorner.Parent = searchBox
168
169-- قائمة اللاعبين
170local playerListFrame = Instance.new("ScrollingFrame")
171playerListFrame.Name = "PlayerList"
172playerListFrame.Size = UDim2.new(0.9, 0, 0, 215)
173playerListFrame.Position = UDim2.new(0.05, 0, 0, 120)
174playerListFrame.BackgroundTransparency = 1
175playerListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
176playerListFrame.ScrollBarThickness = 4
177playerListFrame.Parent = mainFrame
178
179local uiListLayout = Instance.new("UIListLayout")
180uiListLayout.Parent = playerListFrame
181uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder
182uiListLayout.Padding = UDim.new(0, 4)
183
184-- زر M للفتح والإغلاق
185toggleBtn.MouseButton1Click:Connect(function()
186 mainFrame.Visible = not mainFrame.Visible
187end)
188
189-- دالة إرسال الأوامر عبر RequestCommandSilent
190local function sendHDCommand(commandString)
191 local args = {
192 [1] = commandString
193 }
194 pcall(function()
195 ReplicatedStorage.HDAdminHDClient.Signals.RequestCommandSilent:InvokeServer(unpack(args))
196 end)
197end
198
199-- ==================== نظام الاستجابة الفورية المباشرة ====================
200local isProtectionEnabled = false
201
202local clearCommands = {
203 ";unnv me",
204 ";unjail me",
205 ";unice me",
206 ";unlogs me",
207 ";unclogs me",
208 ";unwormify me",
209 ";unfryDance me",
210 ";untitleg me"
211}
212
213-- دالة تطلق جميع أوامر الإلغاء فوراً في نفس اللحظة
214local function triggerInstantClean()
215 if not isProtectionEnabled then return end
216 task.spawn(function()
217 for _, cmd in ipairs(clearCommands) do
218 sendHDCommand(cmd)
219 end
220 end)
221end
222
223protectionToggleBtn.MouseButton1Click:Connect(function()
224 isProtectionEnabled = not isProtectionEnabled
225 if isProtectionEnabled then
226 protectionToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 70)
227 protectionToggleBtn.Text = "🛡️ الحماية: شـغـالـة (فورية)"
228
229 game:GetService("StarterGui"):SetCore("SendNotification", {
230 Title = "مصطفى Admin",
231 Text = "تم تفعيل الاستجابة اللحظية الفورية!",
232 Duration = 2
233 })
234 else
235 protectionToggleBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
236 protectionToggleBtn.Text = "🛡️ الحماية: معطلة"
237
238 game:GetService("StarterGui"):SetCore("SendNotification", {
239 Title = "مصطفى Admin",
240 Text = "تم إيقاف الحماية",
241 Duration = 2
242 })
243 end
244end)
245
246-- استشعار أي إشارة أو إضافة على اللاعب للتنظيف الفوري
247local function setupDetection(character)
248 if not character then return end
249 local humanoid = character:WaitForChild("Humanoid", 5)
250 if not humanoid then return end
251
252 -- 1. أول ما يضاف أي مجسم أو تأثير داخل Character
253 character.ChildAdded:Connect(function()
254 triggerInstantClean()
255 end)
256
257 -- 2. أول ما تتغير حالة الشخصية (جلس، تجمد، طاح)
258 humanoid.StateChanged:Connect(function(oldState, newState)
259 if newState == Enum.HumanoidStateType.Seated or newState == Enum.HumanoidStateType.PlatformStand then
260 triggerInstantClean()
261 humanoid.PlatformStand = false
262 humanoid.Sit = false
263 end
264 end)
265
266 -- 3. أول ما تتغير السرعة أو تنزل عن الطبيعي
267 humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
268 if humanoid.WalkSpeed < 16 then
269 triggerInstantClean()
270 humanoid.WalkSpeed = 16
271 end
272 end)
273end
274
275-- 4. أول ما تفتح أي واجهة لوجات جديدة في الشاشة
276LocalPlayer:WaitForChild("PlayerGui").ChildAdded:Connect(function(gui)
277 if isProtectionEnabled then
278 triggerInstantClean()
279 end
280end)
281
282-- 5. كشف إذا تم بناء سجن في Workspace خارجي باسمك
283workspace.ChildAdded:Connect(function(child)
284 if isProtectionEnabled and string.find(string.lower(child.Name), string.lower(LocalPlayer.Name)) then
285 triggerInstantClean()
286 end
287end)
288
289if LocalPlayer.Character then setupDetection(LocalPlayer.Character) end
290LocalPlayer.CharacterAdded:Connect(setupDetection)
291-- ==============================================================================
292
293-- جدول تتبع السبام
294local activeSpam = {}
295local updatePlayerList
296
297-- تنفيذ السبام المباشر
298local function executeAdminSpam(targetPlayer, btn)
299 local targetName = targetPlayer.Name
300
301 if activeSpam[targetName] then
302 activeSpam[targetName] = false
303
304 game:GetService("StarterGui"):SetCore("SendNotification", {
305 Title = "مصطفى Admin",
306 Text = "تم إيقاف السبام عن: " .. targetName,
307 Duration = 2
308 })
309
310 updatePlayerList()
311 return
312 end
313
314 activeSpam[targetName] = true
315 btn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
316 btn.Text = "سبام شغال: " .. targetPlayer.DisplayName
317
318 task.spawn(function()
319 while activeSpam[targetName] and targetPlayer.Parent do
320 local targetCommands = {
321 ";logs " .. targetName,
322 ";chatlogs " .. targetName,
323 ";kill " .. targetName,
324 ";jail " .. targetName,
325 ";ice " .. targetName,
326 ";frydance " .. targetName,
327 ";wormify " .. targetName,
328 ";titleg " .. targetName .. " اه🥵🥵",
329 ";explode " .. targetName,
330 ";loopwarp " .. targetName,
331 ";dog " .. targetName,
332 ";box " .. targetName
333 }
334
335 for _, cmd in ipairs(targetCommands) do
336 if not activeSpam[targetName] then break end
337 sendHDCommand(cmd)
338 task.wait(0.12)
339 end
340
341 task.wait(0.2)
342 end
343 end)
344
345 game:GetService("StarterGui"):SetCore("SendNotification", {
346 Title = "مصطفى Admin",
347 Text = "بدأ السبام المباشر على: " .. targetName,
348 Duration = 2
349 })
350end
351
352-- تحديث قائمة اللاعبين
353updatePlayerList = function()
354 for _, child in pairs(playerListFrame:GetChildren()) do
355 if child:IsA("TextButton") then
356 child:Destroy()
357 end
358 end
359
360 local searchText = string.lower(searchBox.Text)
361
362 for _, player in pairs(Players:GetPlayers()) do
363 local playerName = string.lower(player.Name)
364 local playerDisplayName = string.lower(player.DisplayName)
365
366 if searchText == "" or string.find(playerName, searchText) or string.find(playerDisplayName, searchText) then
367 local btn = Instance.new("TextButton")
368 btn.Size = UDim2.new(1, 0, 0, 28)
369 btn.BackgroundTransparency = 0.3
370 btn.Font = Enum.Font.SourceSans
371 btn.TextSize = 13
372 btn.Parent = playerListFrame
373
374 local btnCorner = Instance.new("UICorner")
375 btnCorner.CornerRadius = UDim.new(0, 5)
376 btnCorner.Parent = btn
377
378 if activeSpam[player.Name] then
379 btn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
380 btn.Text = "سبام شغال: " .. player.DisplayName
381 btn.TextColor3 = Color3.fromRGB(255, 255, 255)
382 else
383 btn.BackgroundColor3 = Color3.fromRGB(0, 150, 50)
384 btn.Text = player.DisplayName .. " (" .. player.Name .. ")"
385 btn.TextColor3 = Color3.fromRGB(255, 255, 255)
386 end
387
388 btn.MouseButton1Click:Connect(function()
389 executeAdminSpam(player, btn)
390 end)
391 end
392 end
393
394 task.defer(function()
395 playerListFrame.CanvasSize = UDim2.new(0, 0, 0, uiListLayout.AbsoluteContentSize.Y + 10)
396 end)
397end
398
399searchBox:GetPropertyChangedSignal("Text"):Connect(updatePlayerList)
400Players.PlayerAdded:Connect(function()
401 task.wait(0.1)
402 updatePlayerList()
403end)
404Players.PlayerRemoving:Connect(function(player)
405 if activeSpam[player.Name] then
406 activeSpam[player.Name] = false
407 end
408 task.wait(0.1)
409 updatePlayerList()
410end)
411
412task.spawn(updatePlayerList)