-- سكربت يزن المطور v5 - نسخة المنتصف المصغرة والنظيفة local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait() local Humanoid = Character:WaitForChild("Humanoid") local RootPart = Character:WaitForChild("HumanoidRootPart") local flying = false local flySpeed = 50 local defaultWalkSpeed = 16 local infJumpEnabled = false local isMinimized = false local ctrl = {f = 0, b = 0, l = 0, r = 0, u = 0, d = 0} -- [1] إنشاء واجهة المستخدم الرئيسية local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "YazanMiniHub" ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") ScreenGui.ResetOnSpawn = false local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(15, 15, 15) -- توسيط القائمة بالضبط في منتصف الشاشة MainFrame.AnchorPoint = Vector2.new(0.5, 0.5) MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0) -- تقليص الارتفاع لمنع الفراغ السفلي الزائد MainFrame.Size = UDim2.new(0, 150, 0, 165) MainFrame.Active = true MainFrame.Draggable = true local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0, 10) UICorner.Parent = MainFrame -- إطار مضيء ناري local MainStroke = Instance.new("UIStroke") MainStroke.Color = Color3.fromRGB(255, 60, 0) MainStroke.Thickness = 1.5 MainStroke.Parent = MainFrame -- العنوان الرئيسي local TitleLabel = Instance.new("TextLabel") TitleLabel.Parent = MainFrame TitleLabel.Size = UDim2.new(1, 0, 0, 28) TitleLabel.BackgroundColor3 = Color3.fromRGB(25, 25, 25) TitleLabel.Text = "المطور يزن" TitleLabel.TextColor3 = Color3.fromRGB(255, 80, 0) TitleLabel.Font = Enum.Font.SourceSansBold TitleLabel.TextSize = 14 local TitleCorner = Instance.new("UICorner") TitleCorner.CornerRadius = UDim.new(0, 10) TitleCorner.Parent = TitleLabel -- زر التصغير والتكبير الذكي (-) local MinimizeBtn = Instance.new("TextButton") MinimizeBtn.Name = "MinimizeBtn" MinimizeBtn.Parent = MainFrame MinimizeBtn.Size = UDim2.new(0, 22, 0, 22) MinimizeBtn.Position = UDim2.new(1, -26, 0, 3) MinimizeBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) MinimizeBtn.Text = "-" MinimizeBtn.TextColor3 = Color3.fromRGB(255, 80, 0) MinimizeBtn.Font = Enum.Font.SourceSansBold MinimizeBtn.TextSize = 14 MinimizeBtn.ZIndex = 5 local MinCorner = Instance.new("UICorner") ; MinCorner.CornerRadius = UDim.new(0, 5) ; MinCorner.Parent = MinimizeBtn -- حاوية الأزرار local ContentFrame = Instance.new("Frame") ContentFrame.Name = "ContentFrame" ContentFrame.Parent = MainFrame ContentFrame.Size = UDim2.new(1, 0, 1, -28) ContentFrame.Position = UDim2.new(0, 0, 0, 28) ContentFrame.BackgroundTransparency = 1 -- بصمتك بالأسفل (تم رفعها لمنع الفراغات) local Watermark = Instance.new("TextLabel") Watermark.Parent = ContentFrame Watermark.Size = UDim2.new(1, 0, 0, 14) Watermark.Position = UDim2.new(0, 0, 1, -14) Watermark.BackgroundTransparency = 1 Watermark.Text = "سكربت يزن" Watermark.TextColor3 = Color3.fromRGB(150, 150, 150) Watermark.Font = Enum.Font.SourceSansItalic Watermark.TextSize = 10 -- الأزرار الداخلية local ToggleFlyBtn = Instance.new("TextButton") local SpeedFrame = Instance.new("Frame") local MinusBtn = Instance.new("TextButton") local SpeedValueLabel = Instance.new("TextLabel") local PlusBtn = Instance.new("TextButton") local ToggleSpeedBtn = Instance.new("TextButton") local ToggleJumpBtn = Instance.new("TextButton") -- زر الطيران ToggleFlyBtn.Parent = ContentFrame ToggleFlyBtn.Size = UDim2.new(0, 130, 0, 24) ToggleFlyBtn.Position = UDim2.new(0, 10, 0, 6) ToggleFlyBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40) ToggleFlyBtn.Font = Enum.Font.SourceSansBold ToggleFlyBtn.Text = "الطيران: مغلق" ToggleFlyBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleFlyBtn.TextSize = 12 local B1 = Instance.new("UICorner") ; B1.CornerRadius = UDim.new(0, 5) ; B1.Parent = ToggleFlyBtn -- أزرار التحكم بالسرعة SpeedFrame.Parent = ContentFrame SpeedFrame.Size = UDim2.new(0, 130, 0, 24) SpeedFrame.Position = UDim2.new(0, 10, 0, 36) SpeedFrame.BackgroundTransparency = 1 MinusBtn.Parent = SpeedFrame MinusBtn.Size = UDim2.new(0, 24, 1, 0) MinusBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) MinusBtn.Text = "-" MinusBtn.TextColor3 = Color3.fromRGB(255, 255, 255) MinusBtn.Font = Enum.Font.SourceSansBold MinusBtn.TextSize = 14 local BM = Instance.new("UICorner") ; BM.CornerRadius = UDim.new(0, 5) ; BM.Parent = MinusBtn SpeedValueLabel.Parent = SpeedFrame SpeedValueLabel.Size = UDim2.new(0, 82, 1, 0) SpeedValueLabel.Position = UDim2.new(0, 24, 0, 0) SpeedValueLabel.BackgroundTransparency = 1 SpeedValueLabel.Text = "السرعة: " .. flySpeed SpeedValueLabel.TextColor3 = Color3.fromRGB(240, 240, 240) SpeedValueLabel.Font = Enum.Font.SourceSansBold SpeedValueLabel.TextSize = 12 PlusBtn.Parent = SpeedFrame PlusBtn.Size = UDim2.new(0, 24, 1, 0) PlusBtn.Position = UDim2.new(1, -24, 0, 0) PlusBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) PlusBtn.Text = "+" PlusBtn.TextColor3 = Color3.fromRGB(255, 255, 255) PlusBtn.Font = Enum.Font.SourceSansBold PlusBtn.TextSize = 14 local BP = Instance.new("UICorner") ; BP.CornerRadius = UDim.new(0, 5) ; BP.Parent = PlusBtn -- زر سرعة الأرض ToggleSpeedBtn.Parent = ContentFrame ToggleSpeedBtn.Size = UDim2.new(0, 130, 0, 24) ToggleSpeedBtn.Position = UDim2.new(0, 10, 0, 66) ToggleSpeedBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) ToggleSpeedBtn.Font = Enum.Font.SourceSansBold ToggleSpeedBtn.Text = "سرعة الأرض: عادية" ToggleSpeedBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleSpeedBtn.TextSize = 12 local B2 = Instance.new("UICorner") ; B2.CornerRadius = UDim.new(0, 5) ; B2.Parent = ToggleSpeedBtn -- زر القفز اللانهائي ToggleJumpBtn.Parent = ContentFrame ToggleJumpBtn.Size = UDim2.new(0, 130, 0, 24) ToggleJumpBtn.Position = UDim2.new(0, 10, 0, 96) ToggleJumpBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) ToggleJumpBtn.Font = Enum.Font.SourceSansBold ToggleJumpBtn.Text = "القفز اللانهائي: مغلق" ToggleJumpBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleJumpBtn.TextSize = 11 local B3 = Instance.new("UICorner") ; B3.CornerRadius = UDim.new(0, 5) ; B3.Parent = ToggleJumpBtn -- برمجة زر التصغير والتكبير MinimizeBtn.MouseButton1Click:Connect(function() isMinimized = not isMinimized if isMinimized then ContentFrame.Visible = false MainFrame.Size = UDim2.new(0, 150, 0, 28) MinimizeBtn.Text = "+" else ContentFrame.Visible = true MainFrame.Size = UDim2.new(0, 150, 0, 165) MinimizeBtn.Text = "-" end end) -- إعادة التشغيل عند الموت LocalPlayer.CharacterAdded:Connect(function(newChar) Character = newChar Humanoid = Character:WaitForChild("Humanoid") RootPart = Character:WaitForChild("HumanoidRootPart") if flying then flying = false ToggleFlyBtn.Text = "الطيران: مغلق" ToggleFlyBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40) end end) -- نظام الطيران الميكانيكي local function Fly() local bg = Instance.new("BodyGyro") bg.P = 9e4 bg.maxTorque = Vector3.new(9e9, 9e9, 9e9) bg.cframe = RootPart.CFrame bg.Parent = RootPart local bv = Instance.new("BodyVelocity") bv.velocity = Vector3.new(0, 0.1, 0) bv.maxForce = Vector3.new(9e9, 9e9, 9e9) bv.Parent = RootPart Humanoid.PlatformStand = true task.spawn(function() while flying and Character and RootPart and Humanoid.Parent do RunService.RenderStepped:Wait() local camera = workspace.CurrentCamera if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 or ctrl.u + ctrl.d ~= 0 then bv.velocity = ((camera.CFrame.LookVector * (ctrl.f + ctrl.b)) + ((camera.CFrame * CFrame.new(ctrl.l + ctrl.r, (ctrl.f + ctrl.b) * 0.2, 0).Position) - camera.CFrame.p)) * flySpeed else bv.velocity = Vector3.new(0, 0, 0) end bg.cframe = camera.CFrame end bg:Destroy() bv:Destroy() Humanoid.PlatformStand = false end) end ToggleFlyBtn.MouseButton1Click:Connect(function() flying = not flying if flying then ToggleFlyBtn.Text = "الطيران: مفعل" ToggleFlyBtn.BackgroundColor3 = Color3.fromRGB(40, 160, 40) Fly() else ToggleFlyBtn.Text = "الطيران: مغلق" ToggleFlyBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40) end end) PlusBtn.MouseButton1Click:Connect(function() flySpeed = math.min(flySpeed + 10, 300) SpeedValueLabel.Text = "السرعة: " .. flySpeed end) MinusBtn.MouseButton1Click:Connect(function() flySpeed = math.max(flySpeed - 10, 10) SpeedValueLabel.Text = "السرعة: " .. flySpeed end) local speedToggled = false ToggleSpeedBtn.MouseButton1Click:Connect(function() speedToggled = not speedToggled if speedToggled then Humanoid.WalkSpeed = 100 ToggleSpeedBtn.Text = "سرعة الأرض: خارقة" ToggleSpeedBtn.BackgroundColor3 = Color3.fromRGB(0, 100, 220) else Humanoid.WalkSpeed = defaultWalkSpeed ToggleSpeedBtn.Text = "سرعة الأرض: عادية" ToggleSpeedBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) end end) ToggleJumpBtn.MouseButton1Click:Connect(function() infJumpEnabled = not infJumpEnabled if infJumpEnabled then ToggleJumpBtn.Text = "القفز اللانهائي: مفعل" ToggleJumpBtn.BackgroundColor3 = Color3.fromRGB(130, 40, 180) else ToggleJumpBtn.Text = "القفز اللانهائي: مغلق" ToggleJumpBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) end end) UserInputService.JumpRequest:Connect(function() if infJumpEnabled and Humanoid then Humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end) -- إخفاء وإظهار السكربت بالكامل عبر زر E UserInputService.InputBegan:Connect(function(input, gpe) if gpe then return end if input.KeyCode == Enum.KeyCode.E then ScreenGui.Enabled = not ScreenGui.Enabled end end) -- حركة الطيران بالكيبورد UserInputService.InputBegan:Connect(function(input, gpe) if gpe then return end local key = input.KeyCode if key == Enum.KeyCode.W then ctrl.f = 1 elseif key == Enum.KeyCode.S then ctrl.b = -1 elseif key == Enum.KeyCode.A then ctrl.l = -1 elseif key == Enum.KeyCode.D then ctrl.r = 1 end end) UserInputService.InputEnded:Connect(function(input) local key = input.KeyCode if key == Enum.KeyCode.W then ctrl.f = 0 elseif key == Enum.KeyCode.S then ctrl.b = 0 elseif key == Enum.KeyCode.A then ctrl.l = 0 elseif key == Enum.KeyCode.D then ctrl.r = 0 end end)