--================================================================--
--== BADR HUB ULTRA - ROYAL COMET V5.1 (Adaptive & Resizable) ==--
--== متوافق مع كل الأجهزة • قابل لتغيير الحجم • حماية معقدة ==--
--== BY BADR (2025) ==--
--================================================================--
local Players = game:GetService("Players")
local RS = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local plr = Players.LocalPlayer
local Mouse = plr:GetMouse()
local Camera = Workspace.CurrentCamera
--================================================================--
--== الألوان والتأثيرات (ROYAL PULSE) ==--
--================================================================--
local function RoyalGradient(alpha)
-- تدرج لوني ملكي (من الأزرق النيون إلى البنفسجي)
local h = (time() % 5) / 5
local color1 = Color3.fromHSV(h, 0.8, 1) -- لون أول ديناميكي
local color2 = Color3.fromHSV((h + 0.3) % 1, 1, 0.8) -- لون ثانٍ ديناميكي
return color1, color2
end
--================================================================--
--== أيقونة التشغيل/الإيقاف العائمة (المذنب الملكي) ==--
--================================================================--
local ToggleScreen = Instance.new("ScreenGui")
ToggleScreen.Name = "CometToggleScreen"
ToggleScreen.Parent = plr.PlayerGui
local ToggleButton = Instance.new("TextButton", ToggleScreen)
ToggleButton.Name = "CometToggle"
ToggleButton.Text = "☄️" -- إيموجي المذنب كأيقونة
ToggleButton.Size = UDim2.new(0, 55, 0, 55)
ToggleButton.Position = UDim2.new(1, -70, 0.85, 0) -- أسفل يمين
ToggleButton.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ToggleButton.Font = Enum.Font.GothamBlack
ToggleButton.TextSize = 30
ToggleButton.AutoButtonColor = false
ToggleButton.ZIndex = 10
Instance.new("UICorner", ToggleButton).CornerRadius = UDim.new(1, 0)
local ToggleStroke = Instance.new("UIStroke", ToggleButton)
ToggleStroke.Color = Color3.fromRGB(0, 255, 255)
ToggleStroke.Thickness = 2
ToggleStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
--================================================================--
--== الواجهة الرئيسية (MAIN GUI) - قابلة لتغيير الحجم والضبط ==--
--================================================================--
local Screen = Instance.new("ScreenGui", plr.PlayerGui)
Screen.Name = "BadrHubMainScreen"
Screen.ResetOnSpawn = false
local Main = Instance.new("Frame", Screen)
Main.Name = "MainFrame"
-- استخدام المقاييس (Scale) للأبعاد الأساسية لضمان الاستجابة
Main.Size = UDim2.new(0.4, 0, 0.7, 0)
Main.Position = UDim2.new(0.3, 0, 0.15, 0)
Main.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
Main.BorderSizePixel = 0
Main.Active = true
Main.Draggable = true -- لا يزال قابلاً للتحريك
Main.Visible = false
local UICornerMain = Instance.new("UICorner", Main)
UICornerMain.CornerRadius = UDim.new(0, 12)
local Top = Instance.new("Frame", Main)
Top.Name = "TopBar"
Top.Size = UDim2.new(1, 0, 0, 50)
Top.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Top.BorderSizePixel = 0
local TopGradient = Instance.new("UIGradient", Top)
TopGradient.Rotation = 45
local Title = Instance.new("TextLabel", Top)
Title.Name = "TitleLabel"
Title.Size = UDim2.new(1, -20, 1, 0)
Title.Position = UDim2.new(0, 10, 0, 0)
Title.Text = "✨ BADR HUB ULTRA - ADAPTIVE V5.1 ✨"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBlack
Title.TextSize = 20
Title.TextXAlignment = Enum.TextXAlignment.Center
-- زر الإغلاق (X)
local CloseButton = Instance.new("TextButton", Top)
CloseButton.Text = "X"
CloseButton.Size = UDim2.new(0, 30, 0, 30)
CloseButton.Position = UDim2.new(1, -35, 0, 10)
CloseButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseButton.Font = Enum.Font.GothamBold
CloseButton.TextSize = 18
Instance.new("UICorner", CloseButton).CornerRadius = UDim.new(0, 5)
-- تبويبات رئيسية
local Tabs = Instance.new("Frame", Main)
Tabs.Name = "TabsContainer"
Tabs.Size = UDim2.new(0.25, 0, 1, -50) -- 25% من العرض
Tabs.Position = UDim2.new(0, 0, 0, 50)
Tabs.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
Tabs.BorderSizePixel = 0
local UIList = Instance.new("UIListLayout", Tabs)
UIList.Padding = UDim.new(0, 5)
UIList.SortOrder = Enum.SortOrder.LayoutOrder
UIList.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIList.FillDirection = Enum.FillDirection.Vertical
Instance.new("UIPadding", Tabs).PaddingTop = UDim.new(0, 5)
-- منطقة المحتوى
local Content = Instance.new("Frame", Main)
Content.Name = "ContentArea"
Content.Size = UDim2.new(0.75, 0, 1, -50) -- 75% من العرض المتبقي
Content.Position = UDim2.new(0.25, 0, 0, 50)
Content.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
Content.BorderSizePixel = 0
local ContentList = Instance.new("UIListLayout", Content)
ContentList.Padding = UDim.new(0, 10)
ContentList.SortOrder = Enum.SortOrder.LayoutOrder
ContentList.HorizontalAlignment = Enum.HorizontalAlignment.Center
ContentList.FillDirection = Enum.FillDirection.Vertical
Instance.new("UIPadding", Content).PaddingTop = UDim.new(0, 10)
Instance.new("UIPadding", Content).PaddingLeft = UDim.new(0, 10)
Instance.new("UIPadding", Content).PaddingRight = UDim.new(0, 10)
--================================================================--
--== وظيفة منطق تغيير الحجم (Resizing Logic) ==--
--================================================================--
local MIN_WIDTH = 300
local MIN_HEIGHT = 200
local Resizer = Instance.new("TextButton", Main)
Resizer.Text = "⇲" -- أيقونة تغيير الحجم
Resizer.Size = UDim2.new(0, 25, 0, 25)
Resizer.Position = UDim2.new(1, -25, 1, -25)
Resizer.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
Resizer.TextColor3 = Color3.fromRGB(255, 255, 255)
Resizer.Font = Enum.Font.GothamBold
Resizer.TextSize = 18
Resizer.ZIndex = 2
Resizer.AutoButtonColor = false
Instance.new("UICorner", Resizer).CornerRadius = UDim.new(0, 5)
local isResizing = false
local initialMousePos = Vector2.new(0, 0)
local initialSize = Vector2.new(0, 0)
Resizer.MouseButton1Down:Connect(function()
isResizing = true
initialMousePos = UIS:GetMouseLocation()
initialSize = Vector2.new(Main.AbsoluteSize.X, Main.AbsoluteSize.Y)
Main.Draggable = false -- إيقاف التحريك أثناء تغيير الحجم
end)
UIS.InputChanged:Connect(function(input)
if isResizing and input.UserInputType == Enum.UserInputType.MouseMovement then
local delta = UIS:GetMouseLocation() - initialMousePos
local newWidth = math.max(MIN_WIDTH, initialSize.X + delta.X)
local newHeight = math.max(MIN_HEIGHT, initialSize.Y + delta.Y)
Main.Size = UDim2.new(0, newWidth, 0, newHeight)
end
end)
UIS.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
if isResizing then
isResizing = false
Main.Draggable = true -- تفعيل التحريك مرة أخرى
end
end
end)
--================================================================--
--== وظيفة لإنشاء زر تبويب عصري (Modern Tab Creation) ==--
--================================================================--
local ActiveTabButton = nil
local function CreateTab(name, layoutOrder)
local B = Instance.new("TextButton", Tabs)
B.Name = name:gsub("%s+", "") .. "Tab"
B.Size = UDim2.new(1, -10, 0, 45)
B.Position = UDim2.new(0, 5, 0, 0)
B.Text = name
B.TextColor3 = Color3.fromRGB(200, 200, 200)
B.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
B.Font = Enum.Font.GothamBold
B.TextSize = 16
B.BorderSizePixel = 0
B.AutoButtonColor = false
B.LayoutOrder = layoutOrder or 0
Instance.new("UICorner", B).CornerRadius = UDim.new(0, 8)
local function ActivateTab()
if ActiveTabButton then
ActiveTabButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
ActiveTabButton.TextColor3 = Color3.fromRGB(200, 200, 200)
end
-- لون تفعيل ديناميكي من التدرج الملكي
local color1, color2 = RoyalGradient()
B.BackgroundColor3 = color1
B.TextColor3 = Color3.fromRGB(255, 255, 255)
ActiveTabButton = B
end
B.MouseButton1Click:Connect(function()
ActivateTab()
end)
return B, ActivateTab
end
local Tab1, ActivateTab1 = CreateTab("🩸 الكشف 3×", 1)
local Tab2, ActivateTab2 = CreateTab("🎯 AimBot", 2)
local Tab3, ActivateTab3 = CreateTab("🛡️ قِـزم الحماية", 3)
local Tab4, ActivateTab4 = CreateTab("👑 الرئاسات", 4)
--================================================================--
--== وظيفة مساعدة لعرض المحتوى ==--
--================================================================--
local function ClearContent()
for _, v in pairs(Content:GetChildren()) do
if v:IsA("UIListLayout") or v:IsA("UIPadding") then continue end
v:Destroy()
end
end
-- وظيفة زر التبديل العصري (Toggle)
local function CreateModernToggle(name, initialValue, onClick)
local F = Instance.new("Frame", Content)
F.Size = UDim2.new(1, 0, 0, 50)
F.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Instance.new("UICorner", F).CornerRadius = UDim.new(0, 8)
local L = Instance.new("TextLabel", F)
L.Size = UDim2.new(0.7,0,1,0)
L.Text = name
L.BackgroundTransparency = 1
L.TextColor3 = Color3.fromRGB(255,255,255)
L.Font = Enum.Font.GothamBold
L.TextSize = 17
L.TextXAlignment = Enum.TextXAlignment.Left
L.Position = UDim2.new(0.05, 0, 0, 0)
local B = Instance.new("TextButton", F)
B.Size = UDim2.new(0.25, 0, 0.7, 0)
B.Position = UDim2.new(0.72, 0, 0.15, 0)
B.Font = Enum.Font.GothamBold
B.TextSize = 16
Instance.new("UICorner", B).CornerRadius = UDim.new(0, 6)
local isEnabled = initialValue
local function UpdateButtonState()
if isEnabled then
B.Text = "✅ مُفعل"
B.BackgroundColor3 = Color3.fromRGB(0, 150, 0)
else
B.Text = "❌ مُعطل"
B.BackgroundColor3 = Color3.fromRGB(80, 0, 0)
end
end
UpdateButtonState()
B.MouseButton1Click:Connect(function()
isEnabled = not isEnabled
UpdateButtonState()
onClick(isEnabled)
end)
return isEnabled
end
--================================================================--
--== منطق إظهار/إخفاء الواجهة وزر المذنب ==--
--================================================================--
local function ToggleMainGUI(visible)
Main.Visible = visible
ToggleButton.Text = visible and "❌" or "☄️"
ToggleStroke.Color = visible and Color3.fromRGB(200, 0, 0) or Color3.fromRGB(0, 255, 255)
end
CloseButton.MouseButton1Click:Connect(function()
ToggleMainGUI(false)
end)
ToggleButton.MouseButton1Click:Connect(function()
ToggleMainGUI(not Main.Visible)
end)
--================================================================--
--== تبويب الكشف 3 أنواع (ESP) ==--
--================================================================--
Tab1.MouseButton1Click:Connect(function()
ClearContent()
local T = Instance.new("TextLabel", Content)
T.Size = UDim2.new(1, 0, 0, 40)
T.Text = "🩸 أنظمة الكشف – اختر نوع الكشف"
T.Font = Enum.Font.GothamBlack
T.TextSize = 20
T.TextColor3 = Color3.fromRGB(255,255,255)
T.BackgroundTransparency = 1
local function CreateEspButton(name, color, action)
local B = Instance.new("TextButton", Content)
B.Size = UDim2.new(1, 0, 0, 45)
B.Text = name
B.BackgroundColor3 = color
B.TextColor3 = Color3.fromRGB(255,255,255)
B.Font = Enum.Font.GothamBold
B.TextSize = 18
Instance.new("UICorner", B).CornerRadius = UDim.new(0, 8)
B.MouseButton1Click:Connect(action)
end
CreateEspButton("🔶 الكشف البركاني – V1 (أحمر نيون)", Color3.fromRGB(150,0,0), function()
for _, v in pairs(Players:GetPlayers()) do
if v ~= plr and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
local HRP = v.Character.HumanoidRootPart
HRP.BrickColor = BrickColor.new("Bright red")
HRP.Material = Enum.Material.Neon
HRP.Transparency = 0
end
end
end)
CreateEspButton("🔵 الكشف الكهربائي – V2 (هالة زرقاء)", Color3.fromRGB(0,0,150), function()
for _, v in pairs(Players:GetPlayers()) do
if v ~= plr and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
local HRP = v.Character.HumanoidRootPart
HRP.Material = Enum.Material.ForceField
HRP.BrickColor = BrickColor.new("Electric blue")
HRP.Transparency = 0
end
end
end)
CreateEspButton("🟣 الكشف الطيفي – V3 (شفاف بنفسجي)", Color3.fromRGB(150,0,150), function()
for _, v in pairs(Players:GetPlayers()) do
if v ~= plr and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
local HRP = v.Character.HumanoidRootPart
HRP.Transparency = 0.3
HRP.Color = Color3.fromRGB(255,0,255)
HRP.Material = Enum.Material.Plastic
end
end
end)
CreateEspButton("⚪ إعادة ضبط الكشف (الكل)", Color3.fromRGB(40,40,40), function()
for _, v in pairs(Players:GetPlayers()) do
if v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
local HRP = v.Character.HumanoidRootPart
HRP.Transparency = 0
HRP.Material = Enum.Material.Plastic
end
end
end)
end)
--================================================================--
--== تبويب AIMBOT – إعدادات كاملة ==--
--================================================================--
local aimbotEnabled = false
local aimbotSmoothness = 0.15
local aimbotMaxDistance = 380
local aimbotConnection = nil
Tab2.MouseButton1Click:Connect(function()
ClearContent()
local Title = Instance.new("TextLabel", Content)
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Text = "🎯 إعدادات AIMBOT الملكي"
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBlack
Title.TextSize = 20
Title.TextColor3 = Color3.fromRGB(255,255,255)
local function CreateSlider(txt, default, callback)
local F = Instance.new("Frame", Content)
F.Size = UDim2.new(1, 0, 0, 45)
F.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Instance.new("UICorner", F).CornerRadius = UDim.new(0, 8)
local L = Instance.new("TextLabel", F)
L.Size = UDim2.new(0.6,0,1,0)
L.Text = txt
L.BackgroundTransparency = 1
L.TextColor3 = Color3.fromRGB(255,255,255)
L.Font = Enum.Font.GothamBold
L.TextSize = 17
L.TextXAlignment = Enum.TextXAlignment.Left
L.Position = UDim2.new(0.05, 0, 0, 0)
local S = Instance.new("TextBox", F)
S.Size = UDim2.new(0.35,0,0.7,0)
S.Position = UDim2.new(0.63,0,0.15,0)
S.Text = tostring(default)
S.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
S.TextColor3 = Color3.fromRGB(0,255,150)
S.Font = Enum.Font.GothamBlack
S.TextSize = 16
Instance.new("UICorner", S).CornerRadius = UDim.new(0, 6)
S.TextXAlignment = Enum.TextXAlignment.Center
S.FocusLost:Connect(function()
local num = tonumber(S.Text)
if num then
callback(num)
else
S.Text = tostring(default)
end
end)
end
CreateSlider("Smoothness (0.01 - 1)", aimbotSmoothness, function(v)
aimbotSmoothness = math.clamp(v, 0.01, 1)
end)
CreateSlider("Distance (FOV) (50 - 500)", aimbotMaxDistance, function(v)
aimbotMaxDistance = math.max(50, v)
end)
local aimbotToggleButton = CreateModernToggle("تفعيل نظام التصويب التلقائي (AIMBOT)", aimbotEnabled, function(enabled)
aimbotEnabled = enabled
if enabled then
if not aimbotConnection then
aimbotConnection = RunService.RenderStepped:Connect(function()
if not Camera or not mousemoverel then return end
local Target = nil
local Dist = aimbotMaxDistance
for _, v in pairs(Players:GetPlayers()) do
if v ~= plr and v.Character and v.Character:FindFirstChild("Head") then
local H = v.Character.Head
local ScreenPoint = Camera:WorldToScreenPoint(H.Position)
if ScreenPoint.X > 0 and ScreenPoint.Y > 0 and ScreenPoint.Z > 0 then
local Mag = (Vector2.new(Mouse.X,Mouse.Y) - Vector2.new(ScreenPoint.X,ScreenPoint.Y)).magnitude
if Mag < Dist then
Dist = Mag
Target = H
end
end
end
end
if Target then
local TargetScreen = Camera:WorldToScreenPoint(Target.Position)
local moveX = (TargetScreen.X - Mouse.X) * aimbotSmoothness
local moveY = (TargetScreen.Y - Mouse.Y) * aimbotSmoothness
-- Requires 'mousemoverel()' function from the executor
mousemoverel(moveX, moveY)
end
end)
end
else
if aimbotConnection then
aimbotConnection:Disconnect()
aimbotConnection = nil
end
end
end)
end)
--================================================================--
--== تبويب القزم – نظام حماية معقد (Complex Protection System) ==--
--================================================================--
local protectionEnabled = false
local protectionConnection = nil
Tab3.MouseButton1Click:Connect(function()
ClearContent()
local Title = Instance.new("TextLabel", Content)
Title.Size = UDim2.new(1,0,0,40)
Title.Text = "🛡️ نظام قِـزم الحماية المعقد (V3)"
Title.TextColor3 = Color3.fromRGB(255,255,255)
Title.Font = Enum.Font.GothamBlack
Title.TextSize = 22
Title.BackgroundTransparency = 1
local function ToggleProtection(enabled)
protectionEnabled = enabled
if enabled then
print("Protection V3 Activated: Initiating anti-detection protocols...")
-- (Mock Protection Logic)
if not protectionConnection then
protectionConnection = RunService.Heartbeat:Connect(function()
-- Client-Side Integrity Check (Mock)
if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") then
-- Simulating a simple client check loop
plr.Character.HumanoidRootPart.CanCollide = true -- Placeholder
end
end)
end
else
print("Protection V3 Deactivated: Security protocols offline.")
if protectionConnection then
protectionConnection:Disconnect()
protectionConnection = nil
end
end
end
local toggleFrame = Instance.new("Frame", Content)
toggleFrame.Size = UDim2.new(1, 0, 0, 50)
toggleFrame.BackgroundTransparency = 1
CreateModernToggle("تفعيل بروتوكول قزم الحماية V3", protectionEnabled, ToggleProtection)
-- ميزات الحماية المتقدمة الزائفة
local function AddFeature(name, status)
local F = Instance.new("Frame", Content)
F.Size = UDim2.new(1, 0, 0, 30)
F.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
Instance.new("UICorner", F).CornerRadius = UDim.new(0, 5)
local L = Instance.new("TextLabel", F)
L.Size = UDim2.new(0.8, 0, 1, 0)
L.Text = name
L.BackgroundTransparency = 1
L.TextColor3 = Color3.fromRGB(150, 150, 150)
L.Font = Enum.Font.GothamBold
L.TextSize = 15
L.TextXAlignment = Enum.TextXAlignment.Left
L.Position = UDim2.new(0.05, 0, 0, 0)
local S = Instance.new("TextLabel", F)
S.Size = UDim2.new(0.2, 0, 1, 0)
S.Text = status
S.BackgroundTransparency = 1
S.TextColor3 = status == "مُفعل" and Color3.fromRGB(0, 200, 0) or Color3.fromRGB(200, 0, 0)
S.Font = Enum.Font.GothamBold
S.TextSize = 15
S.TextXAlignment = Enum.TextXAlignment.Center
end
AddFeature("• Anti-Detection Loop (ADL)", "مُفعل")
AddFeature("• Client-Side Integrity Check", "مُفعل")
AddFeature("• Bypassing Security V2", "مُفعل")
AddFeature("• Anti-Kick/Ban Simulation", "مُفعل")
end)
--================================================================--
--== تبويب الرئاسات – V2 / V3 / V4 ==--
--================================================================--
Tab4.MouseButton1Click:Connect(function()
ClearContent()
local T = Instance.new("TextLabel", Content)
T.Size = UDim2.new(1,0,0,40)
T.Text = "👑 نظام الرئاسات الملكي للتحكم"
T.Font = Enum.Font.GothamBlack
T.BackgroundTransparency = 1
T.TextSize = 22
T.TextColor3 = Color3.fromRGB(255,255,255)
local function Add(name, action)
local B = Instance.new("TextButton", Content)
B.Size = UDim2.new(1,0,0,45)
B.Text = name
B.Font = Enum.Font.GothamBlack
B.TextSize = 18
B.TextColor3 = Color3.fromRGB(255,255,255)
B.BackgroundColor3 = Color3.fromRGB(50,10,70)
Instance.new("UICorner", B).CornerRadius = UDim.new(0, 8)
B.MouseButton1Click:Connect(function()
action()
end)
return B
end
Add("🇪🇬 ريس – عبد الفتاح السيسي (V2)", function()
print("تم تفعيل ريس السيسي V2")
end)
Add("🔷 ريس – V3 (تحكم متقدم)", function()
print("تم تفعيل ريس V3")
end)
Add("🔶 ريس – V4 (تحكم شامل)", function()
print("تم تفعيل ريس V4")
end)
end)
--================================================================--
--== تحديث الألوان الديناميكي والتأثيرات ==--
--================================================================--
RunService.RenderStepped:Connect(function()
-- تحديث تدرج الشريط العلوي (Top Bar) بشكل مستمر
local color1, color2 = RoyalGradient()
TopGradient.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, color1),
ColorSequenceKeypoint.new(1, color2)
})
-- تأثير خفيف على حدود الزر العائم
ToggleStroke.Color = color1
end)
-- تفعيل التبويب الأول عند التحميل والبدء بإخفاء الواجهة
ActivateTab1()
ToggleMainGUI(false)