-- [[ TEAM CV - Blade Ball Auto Parry ]] -- local Library = {} -- مكتبة بسيطة للواجهة local Active = false -- الخدمات local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") local VirtualInputManager = game:GetService("VirtualInputManager") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() -- إعدادات المسافة local ParryDistance = 15 -- يمكنك تغيير المسافة من هنا -- إنشاء الواجهة (GUI) local ScreenGui = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local Title = Instance.new("TextLabel") local ToggleBtn = Instance.new("TextButton") local UICorner = Instance.new("UICorner") local UICorner2 = Instance.new("UICorner") ScreenGui.Name = "TeamCV_Gui" ScreenGui.Parent = game:GetService("CoreGui") -- لضمان بقائها عند الموت MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.Position = UDim2.new(0.5, -75, 0.5, -50) MainFrame.Size = UDim2.new(0, 150, 0, 100) MainFrame.Active = true MainFrame.Draggable = true -- تسمح لك بسحب الواجهة UICorner.Parent = MainFrame Title.Name = "Title" Title.Parent = MainFrame Title.BackgroundTransparency = 1 Title.Size = UDim2.new(1, 0, 0, 30) Title.Font = Enum.Font.GothamBold Title.Text = "TEAM CV" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 18 ToggleBtn.Name = "ToggleBtn" ToggleBtn.Parent = MainFrame ToggleBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- لون أحمر (مغلق) ToggleBtn.Position = UDim2.new(0.1, 0, 0.4, 0) ToggleBtn.Size = UDim2.new(0.8, 0, 0.4, 0) ToggleBtn.Font = Enum.Font.Gotham ToggleBtn.Text = "OFF" ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleBtn.TextSize = 14 UICorner2.Parent = ToggleBtn -- دالة التبديل (Toggle) ToggleBtn.MouseButton1Click:Connect(function() Active = not Active if Active then ToggleBtn.Text = "ON (AUTO PARRY)" ToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 150, 0) -- أخضر else ToggleBtn.Text = "OFF" ToggleBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- أحمر end end) -- وظيفة البحث عن الكرة والضرب RunService.Heartbeat:Connect(function() if not Active then return end local ballsFolder = Workspace:FindFirstChild("balls") if ballsFolder then local ball = ballsFolder:GetChildren()[1] -- الحصول على أول كرة تظهر مهما كان اسمها if ball and ball:IsA("BasePart") then local char = player.Character if char and char:FindFirstChild("HumanoidRootPart") then local distance = (ball.Position - char.HumanoidRootPart.Position).Magnitude -- إذا كانت الكرة قريبة if distance <= ParryDistance then -- محاكاة ضغط زر F للصد VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.F, false, game) task.wait(0.05) VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.F, false, game) end end end end end) print("TEAM CV Script Loaded!")