CCCPaste

f64461870c7cf

--================================================================--
--== BADR HUB ULTRA - ROYAL COMET V6.0 (Final Full Version)      ==--
--== BY BADR (2025)                                              ==--
--== متوافق مع كل الأجهزة • AIMBOT كامل • ESP • Protection V3    ==--
--================================================================--

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

--================================================================--
local function RoyalGradient()
    local h = (tick() % 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", plr.PlayerGui)
ToggleScreen.Name = "CometToggleScreen"
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
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

--================================================================--
local Screen = Instance.new("ScreenGui", plr.PlayerGui)
Screen.Name = "BadrHubMainScreen"
Screen.ResetOnSpawn = false
local Main = Instance.new("Frame", Screen)
Main.Name = "MainFrame"
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
Instance.new("UICorner", Main).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)
local Title = Instance.new("TextLabel", Top)
Title.Size = UDim2.new(1,-20,1,0)
Title.Position = UDim2.new(0,10,0,0)
Title.Text = "✨ BADR HUB ULTRA - ADAPTIVE V6.0 ✨"
Title.TextColor3 = Color3.fromRGB(255,255,255)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBlack
Title.TextSize = 20
Title.TextXAlignment = Enum.TextXAlignment.Center

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)
CloseButton.MouseButton1Click:Connect(function() Main.Visible=false ToggleButton.Text="☄️" ToggleStroke.Color=Color3.fromRGB(0,255,255) end)

ToggleButton.MouseButton1Click:Connect(function()
    Main.Visible = not Main.Visible
    ToggleButton.Text = Main.Visible and "❌" or "☄️"
    ToggleStroke.Color = Main.Visible and Color3.fromRGB(200,0,0) or Color3.fromRGB(0,255,255)
end)

local Tabs = Instance.new("Frame", Main)
Tabs.Name = "TabsContainer"
Tabs.Size = UDim2.new(0.25,0,1,-50)
Tabs.Position = UDim2.new(0,0,0,50)
Tabs.BackgroundColor3 = Color3.fromRGB(15,15,15)
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

local Content = Instance.new("Frame", Main)
Content.Name = "ContentArea"
Content.Size = UDim2.new(0.75,0,1,-50)
Content.Position = UDim2.new(0.25,0,0,50)
Content.BackgroundColor3 = Color3.fromRGB(20,20,20)
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

local ActiveTabButton = nil
local function ClearContent()
    for _,v in pairs(Content:GetChildren()) do
        if not (v:IsA("UIListLayout") or v:IsA("UIPadding")) then v:Destroy() end
    end
end

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.Text = name
    B.BackgroundColor3 = Color3.fromRGB(30,30,30)
    B.TextColor3 = Color3.fromRGB(200,200,200)
    B.Font = Enum.Font.GothamBold
    B.TextSize = 16
    B.AutoButtonColor = false
    B.LayoutOrder = layoutOrder or 0
    Instance.new("UICorner", B).CornerRadius = UDim.new(0,8)
    B.MouseButton1Click:Connect(function()
        if ActiveTabButton then
            ActiveTabButton.BackgroundColor3 = Color3.fromRGB(30,30,30)
            ActiveTabButton.TextColor3 = Color3.fromRGB(200,200,200)
        end
        local c1,c2 = RoyalGradient()
        B.BackgroundColor3 = c1
        B.TextColor3 = Color3.fromRGB(255,255,255)
        ActiveTabButton = B
        if B.OnClick then B.OnClick() end
    end)
    return B
end

local Tab1 = CreateTab("🩸 الكشف 3×",1)
local Tab2 = CreateTab("🎯 AIMBOT",2)
local Tab3 = CreateTab("🛡️ قِـزم الحماية",3)
local Tab4 = CreateTab("👑 الرئاسات",4)

-- ESP
Tab1.OnClick = function()
    ClearContent()
    local label = Instance.new("TextLabel", Content)
    label.Size = UDim2.new(1,0,0,40)
    label.Text = "🩸 اختر نوع الكشف"
    label.Font = Enum.Font.GothamBlack
    label.TextSize = 20
    label.TextColor3 = Color3.fromRGB(255,255,255)
    label.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 aimPart="Head"
local selectedTarget=nil
local FOV=160
local autoTarget=true
local prediction=0.12

local fovCircle=Drawing.new("Circle")
fovCircle.Color=Color3.fromRGB(0,200,255)
fovCircle.Thickness=2
fovCircle.NumSides=100
fovCircle.Radius=FOV
fovCircle.Visible=true

RunService.RenderStepped:Connect(function()
    fovCircle.Position=Vector2.new(Mouse.X,Mouse.Y)
end)

local function GetClosestToFOV()
    local closestPlayer=nil
    local closestDist=math.huge
    for _,enemy in pairs(Players:GetPlayers()) do
        if enemy~=plr and enemy.Character and enemy.Character:FindFirstChild("HumanoidRootPart") then
            local hrp=enemy.Character.HumanoidRootPart
            local screenPos,vis=Camera:WorldToViewportPoint(hrp.Position)
            if vis then
                local dist=(Vector2.new(screenPos.X,screenPos.Y)-Vector2.new(Mouse.X,Mouse.Y)).Magnitude
                if distaimbotMaxDistance then return end
        local vel=hrp.Velocity*prediction
        local predicted=part.Position+vel
        local pos=Camera:WorldToViewportPoint(predicted)
        local dx=(pos.X-Mouse.X)*aimbotSmoothness
        local dy=(pos.Y-Mouse.Y)*aimbotSmoothness
        mousemoverel(dx,dy)
    end
end)

task.spawn(function()
    while task.wait(0.5) do
        if selectedTarget then
            if not selectedTarget.Character
            or not selectedTarget.Character:FindFirstChild("HumanoidRootPart")
            or selectedTarget.Character.Humanoid.Health<=0 then
                selectedTarget=nil
            end
        end
    end
end)

-- Tab2 AIMBOT GUI
Tab2.OnClick=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)
    CreateSlider("FOV Size (50 - 300)",FOV,function(v) FOV=math.clamp(v,50,300) fovCircle.Radius=FOV end)
    CreateSlider("Prediction (0.05 - 0.40)",prediction,function(v) prediction=math.clamp(v,0.05,0.40) end)

    local toggle = Instance.new("TextButton",Content)
    toggle.Size=UDim2.new(1,0,0,45)
    toggle.Text="تفعيل AIMBOT"
    toggle.BackgroundColor3=Color3.fromRGB(0,150,0)
    toggle.TextColor3=Color3.fromRGB(255,255,255)
    toggle.Font=Enum.Font.GothamBold
    toggle.TextSize=18
    Instance.new("UICorner",toggle).CornerRadius=UDim.new(0,8)
    toggle.MouseButton1Click:Connect(function()
        aimbotEnabled=not aimbotEnabled
        toggle.BackgroundColor3=aimbotEnabled and Color3.fromRGB(0,150,0) or Color3.fromRGB(150,0,0)
        toggle.Text=aimbotEnabled and "✅ AIMBOT مفعل" or "❌ AIMBOT معطل"
    end)

    local autoTargetBtn = Instance.new("TextButton",Content)
    autoTargetBtn.Size=UDim2.new(1,0,0,45)
    autoTargetBtn.Text="Auto Target (داخل FOV)"
    autoTargetBtn.BackgroundColor3=Color3.fromRGB(0,150,0)
    autoTargetBtn.TextColor3=Color3.fromRGB(255,255,255)
    autoTargetBtn.Font=Enum.Font.GothamBold
    autoTargetBtn.TextSize=18
    Instance.new("UICorner",autoTargetBtn).CornerRadius = UDim.new(0,8)
    autoTargetBtn.MouseButton1Click:Connect(function()
        autoTarget=not autoTarget
        autoTargetBtn.BackgroundColor3=autoTarget and Color3.fromRGB(0,150,0) or Color3.fromRGB(150,0,0)
        autoTargetBtn.Text=autoTarget and "✅ Auto Target مفعل" or "❌ Auto Target معطل"
    end)

    local TargetBox = Instance.new("TextBox", Content)
    TargetBox.Size = UDim2.new(1,0,0,40)
    TargetBox.PlaceholderText = "أدخل حرف أو اسم اللاعب"
    TargetBox.Text = ""
    TargetBox.BackgroundColor3 = Color3.fromRGB(15,15,15)
    TargetBox.TextColor3 = Color3.fromRGB(0,255,200)
    TargetBox.Font = Enum.Font.GothamBold
    TargetBox.TextSize
TargetBox.TextSize = 16
  Instance.new("UICorner", TargetBox).CornerRadius = UDim.new(0,6)
    TargetBox.TextXAlignment = Enum.TextXAlignment.Center
    TargetBox.FocusLost:Connect(function(enter)
        if enter then
            local inputText = TargetBox.Text:lower()
            selectedTarget = nil
            for _, pl in pairs(Players:GetPlayers()) do
                if pl ~= plr and pl.Character and pl.Character:FindFirstChild("HumanoidRootPart") then
                    if pl.Name:lower():find(inputText) then
                        selectedTarget = pl
                        break
                    end
                end
            end
        end
    end)
end

-- Tab3 Protection GUI
Tab3.OnClick=function()
    ClearContent()
    local label=Instance.new("TextLabel",Content)
    label.Size=UDim2.new(1,0,0,40)
    label.Text="🛡️ حماية كاملة"
    label.BackgroundTransparency=1
    label.Font=Enum.Font.GothamBlack
    label.TextSize=20
    label.TextColor3=Color3.fromRGB(255,255,255)

    local function CreateProtectionButton(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

    CreateProtectionButton("🛡️ منع الاختراق", Color3.fromRGB(0,150,0),function()
        plr.CharacterAdded:Connect(function(char)
            char:WaitForChild("Humanoid").HealthChanged:Connect(function(h)
                if h <= 0 then
                    char:BreakJoints()
                end
            end)
        end)
    end)
    CreateProtectionButton("⚠️ تعطيل الهجمات الغريبة", Color3.fromRGB(150,0,0),function()
        for _,v in pairs(Workspace:GetChildren()) do
            if v:IsA("Tool") and v:FindFirstChild("Handle") then
                v:Destroy()
            end
        end
    end)
end

-- Tab4 Presidents GUI
Tab4.OnClick=function()
    ClearContent()
    local label=Instance.new("TextLabel",Content)
    label.Size=UDim2.new(1,0,0,40)
    label.Text="👑 تحكم رئاسي"
    label.BackgroundTransparency=1
    label.Font=Enum.Font.GothamBlack
    label.TextSize=20
    label.TextColor3=Color3.fromRGB(255,255,255)

    local function CreatePresidentButton(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

    CreatePresidentButton("👑 Force Accept", Color3.fromRGB(0,150,0),function()
        for _,v in pairs(RS:GetDescendants()) do
            if v:IsA("RemoteEvent") and v.Name:lower():find("accept") then
                v:FireServer()
            end
        end
    end)
    CreatePresidentButton("👑 Force Ready", Color3.fromRGB(0,0,200),function()
        for _,v in pairs(RS:GetDescendants()) do
            if v:IsA("RemoteEvent") and v.Name:lower():find("ready") then
                v:FireServer()
            end
        end
    end)
end

--================================================================--
-- نهاية سكربت BADR HUB ULTRA V6.0 كامل جاهز للاستخدام
--================================================================--