-- Ultimate Flight & Speed Script - Combined -- School Project - 99 Nights in the Forest local Player = game:GetService("Players").LocalPlayer local RunService = game:GetService("RunService") -- ============ نظام الطيران ============ local Flight = { Enabled = false, BodyVelocity = nil, FlySpeed = 35, FlyBoost = false, FlyBoostSpeed = 70 } -- ============ نظام سرعة المشي ============ local WalkSpeed = { Enabled = false, NormalSpeed = 16, FastSpeed = 50, WalkBoost = false } -- ============ الواجهة الكاملة ============ local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "UltimateFlightSpeedGUI" ScreenGui.Parent = Player:FindFirstChild("PlayerGui") or game.CoreGui ScreenGui.ResetOnSpawn = false -- ============ الصف الأول (3 أزرار رئيسية) ============ -- 1. زر الطيران ✈️ local FlyButton = Instance.new("TextButton") FlyButton.Name = "FlyButton" FlyButton.Size = UDim2.new(0, 70, 0, 70) FlyButton.Position = UDim2.new(0.8, 0, 0.1, 0) FlyButton.BackgroundColor3 = Color3.fromRGB(52, 152, 219) FlyButton.BorderSizePixel = 0 FlyButton.TextColor3 = Color3.fromRGB(255, 255, 255) FlyButton.Text = "✈️\nOFF" FlyButton.Font = Enum.Font.GothamBold FlyButton.TextSize = 14 FlyButton.TextWrapped = true FlyButton.ZIndex = 10 FlyButton.Parent = ScreenGui -- 2. زر السرعة 🏃 local SpeedButton = Instance.new("TextButton") SpeedButton.Name = "SpeedButton" SpeedButton.Size = UDim2.new(0, 70, 0, 70) SpeedButton.Position = UDim2.new(0.7, 0, 0.1, 0) SpeedButton.BackgroundColor3 = Color3.fromRGB(46, 204, 113) SpeedButton.BorderSizePixel = 0 SpeedButton.TextColor3 = Color3.fromRGB(255, 255, 255) SpeedButton.Text = "🏃\nNORMAL" SpeedButton.Font = Enum.Font.GothamBold SpeedButton.TextSize = 14 SpeedButton.TextWrapped = true SpeedButton.ZIndex = 10 SpeedButton.Parent = ScreenGui -- 3. زر الإخفاء 👁️ local HideButton = Instance.new("TextButton") HideButton.Name = "HideButton" HideButton.Size = UDim2.new(0, 70, 0, 70) HideButton.Position = UDim2.new(0.9, 0, 0.1, 0) HideButton.BackgroundColor3 = Color3.fromRGB(155, 89, 182) HideButton.BorderSizePixel = 0 HideButton.TextColor3 = Color3.fromRGB(255, 255, 255) HideButton.Text = "👁️\nHIDE" HideButton.Font = Enum.Font.GothamBold HideButton.TextSize = 14 HideButton.TextWrapped = true HideButton.ZIndex = 10 HideButton.Parent = ScreenGui -- ============ الصف الثاني (زرين فوق/تحت + زرين تسريع) ============ -- 4. زر الطيران للأعلى ⬆ local UpButton = Instance.new("TextButton") UpButton.Name = "UpButton" UpButton.Size = UDim2.new(0, 70, 0, 70) UpButton.Position = UDim2.new(0.8, 0, 0.2, 0) UpButton.BackgroundColor3 = Color3.fromRGB(52, 152, 219) UpButton.BorderSizePixel = 0 UpButton.TextColor3 = Color3.fromRGB(255, 255, 255) UpButton.Text = "⬆\nUP" UpButton.Font = Enum.Font.GothamBold UpButton.TextSize = 14 UpButton.TextWrapped = true UpButton.ZIndex = 10 UpButton.Visible = false UpButton.Parent = ScreenGui -- 5. زر الطيران للأسفل ⬇ local DownButton = Instance.new("TextButton") DownButton.Name = "DownButton" DownButton.Size = UDim2.new(0, 70, 0, 70) DownButton.Position = UDim2.new(0.9, 0, 0.2, 0) DownButton.BackgroundColor3 = Color3.fromRGB(231, 76, 60) DownButton.BorderSizePixel = 0 DownButton.TextColor3 = Color3.fromRGB(255, 255, 255) DownButton.Text = "⬇\nDOWN" DownButton.Font = Enum.Font.GothamBold DownButton.TextSize = 14 DownButton.TextWrapped = true DownButton.ZIndex = 10 DownButton.Visible = false DownButton.Parent = ScreenGui -- 6. زر تسريع الطيران 🚀 local FlyBoostButton = Instance.new("TextButton") FlyBoostButton.Name = "FlyBoostButton" FlyBoostButton.Size = UDim2.new(0, 70, 0, 70) FlyBoostButton.Position = UDim2.new(0.7, 0, 0.2, 0) FlyBoostButton.BackgroundColor3 = Color3.fromRGB(255, 140, 0) -- برتقالي FlyBoostButton.BorderSizePixel = 0 FlyBoostButton.TextColor3 = Color3.fromRGB(255, 255, 255) FlyBoostButton.Text = "🚀\nFLY BOOST" FlyBoostButton.Font = Enum.Font.GothamBold FlyBoostButton.TextSize = 12 FlyBoostButton.TextWrapped = true FlyBoostButton.ZIndex = 10 FlyBoostButton.Visible = false FlyBoostButton.Parent = ScreenGui -- 7. زر تسريع المشي ⚡ local SpeedBoostButton = Instance.new("TextButton") SpeedBoostButton.Name = "SpeedBoostButton" SpeedBoostButton.Size = UDim2.new(0, 70, 0, 70) SpeedBoostButton.Position = UDim2.new(0.6, 0, 0.2, 0) SpeedBoostButton.BackgroundColor3 = Color3.fromRGB(155, 89, 182) -- بنفسجي SpeedBoostButton.BorderSizePixel = 0 SpeedBoostButton.TextColor3 = Color3.fromRGB(255, 255, 255) SpeedBoostButton.Text = "⚡\nSPEED BOOST" SpeedBoostButton.Font = Enum.Font.GothamBold SpeedBoostButton.TextSize = 12 SpeedBoostButton.TextWrapped = true SpeedBoostButton.ZIndex = 10 SpeedBoostButton.Visible = false SpeedBoostButton.Parent = ScreenGui -- ============ نظام الطيران ============ local function ToggleFlight() local character = Player.Character if not character then return end local humanoidRootPart = character:FindFirstChild("HumanoidRootPart") if not humanoidRootPart then return end Flight.Enabled = not Flight.Enabled if Flight.Enabled then -- تفعيل الطيران FlyButton.BackgroundColor3 = Color3.fromRGB(231, 76, 60) FlyButton.Text = "✈️\nON" -- إظهار أزرار الطيران UpButton.Visible = true DownButton.Visible = true FlyBoostButton.Visible = true -- إخفاء تسريع السرعة (لا يعملان معاً) SpeedBoostButton.Visible = false -- إيقاف السرعة إذا كانت شغالة if WalkSpeed.Enabled then ToggleWalkSpeed() -- نوقف السرعة end -- إنشاء نظام الطيران Flight.BodyVelocity = Instance.new("BodyVelocity") Flight.BodyVelocity.Velocity = Vector3.new(0, 0, 0) Flight.BodyVelocity.MaxForce = Vector3.new(0, 50000, 0) Flight.BodyVelocity.P = 800 Flight.BodyVelocity.Parent = humanoidRootPart warn("✈️ FLIGHT ENABLED") warn("Use UP/DOWN buttons to control height") else -- تعطيل الطيران FlyButton.BackgroundColor3 = Color3.fromRGB(52, 152, 219) FlyButton.Text = "✈️\nOFF" -- إخفاء أزرار الطيران UpButton.Visible = false DownButton.Visible = false FlyBoostButton.Visible = false -- إلغاء تسريع الطيران Flight.FlyBoost = false FlyBoostButton.BackgroundColor3 = Color3.fromRGB(255, 140, 0) FlyBoostButton.Text = "🚀\nFLY BOOST" -- إزالة نظام الطيران if Flight.BodyVelocity then Flight.BodyVelocity:Destroy() Flight.BodyVelocity = nil end warn("✈️ FLIGHT DISABLED") end end -- ============ نظام سرعة المشي ============ local function ToggleWalkSpeed() local character = Player.Character if not character then return end local humanoid = character:FindFirstChild("Humanoid") if not humanoid then return end WalkSpeed.Enabled = not WalkSpeed.Enabled if WalkSpeed.Enabled then -- تفعيل السرعة SpeedButton.BackgroundColor3 = Color3.fromRGB(231, 76, 60) SpeedButton.Text = "🏃\nFAST" -- إظهار تسريع السرعة SpeedBoostButton.Visible = true -- إخفاء أزرار الطيران (لا يعملان معاً) UpButton.Visible = false DownButton.Visible = false FlyBoostButton.Visible = false -- إيقاف الطيران إذا كان شغال if Flight.Enabled then ToggleFlight() -- نوقف الطيران end -- تعيين السرعة if WalkSpeed.WalkBoost then humanoid.WalkSpeed = WalkSpeed.FastSpeed else humanoid.WalkSpeed = WalkSpeed.NormalSpeed end warn("🏃 FAST WALK ENABLED") else -- تعطيل السرعة SpeedButton.BackgroundColor3 = Color3.fromRGB(46, 204, 113) SpeedButton.Text = "🏃\nNORMAL" -- إخفاء تسريع السرعة SpeedBoostButton.Visible = false -- إلغاء تسريع السرعة WalkSpeed.WalkBoost = false SpeedBoostButton.BackgroundColor3 = Color3.fromRGB(155, 89, 182) SpeedBoostButton.Text = "⚡\nSPEED BOOST" -- إعادة السرعة العادية humanoid.WalkSpeed = 16 warn("🏃 Normal walking speed restored") end end -- ربط الأزرار الرئيسية FlyButton.MouseButton1Click:Connect(ToggleFlight) SpeedButton.MouseButton1Click:Connect(ToggleWalkSpeed) -- ============ نظام التحكم في الطيران ============ local UpPressed = false local DownPressed = false -- زر الأعلى UpButton.MouseButton1Down:Connect(function() UpPressed = true UpButton.BackgroundColor3 = Color3.fromRGB(41, 128, 185) end) UpButton.MouseButton1Up:Connect(function() UpPressed = false UpButton.BackgroundColor3 = Color3.fromRGB(52, 152, 219) end) -- زر الأسفل DownButton.MouseButton1Down:Connect(function() DownPressed = true DownButton.BackgroundColor3 = Color3.fromRGB(192, 57, 43) end) DownButton.MouseButton1Up:Connect(function() DownPressed = false DownButton.BackgroundColor3 = Color3.fromRGB(231, 76, 60) end) -- ============ نظام تسريع الطيران ============ FlyBoostButton.MouseButton1Click:Connect(function() if not Flight.Enabled then warn("⚠️ Enable flight first!") return end Flight.FlyBoost = not Flight.FlyBoost if Flight.FlyBoost then FlyBoostButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50) FlyBoostButton.Text = "🚀\n70 SPEED!" warn("🚀 FLY BOOST ACTIVATED: 70 speed") else FlyBoostButton.BackgroundColor3 = Color3.fromRGB(255, 140, 0) FlyBoostButton.Text = "🚀\nFLY BOOST" warn("🚀 Fly boost deactivated") end end) -- ============ نظام تسريع المشي ============ SpeedBoostButton.MouseButton1Click:Connect(function() if not WalkSpeed.Enabled then warn("⚠️ Enable fast walk first!") return end local character = Player.Character if not character then return end local humanoid = character:FindFirstChild("Humanoid") if not humanoid then return end WalkSpeed.WalkBoost = not WalkSpeed.WalkBoost if WalkSpeed.WalkBoost then humanoid.WalkSpeed = WalkSpeed.FastSpeed SpeedBoostButton.BackgroundColor3 = Color3.fromRGB(231, 76, 60) SpeedBoostButton.Text = "⚡\n50 SPEED!" warn("⚡ SPEED BOOST ACTIVATED: 50 speed") else humanoid.WalkSpeed = WalkSpeed.NormalSpeed SpeedBoostButton.BackgroundColor3 = Color3.fromRGB(155, 89, 182) SpeedBoostButton.Text = "⚡\nSPEED BOOST" warn("⚡ Speed boost deactivated") end end) -- ============ تحديث الطيران ============ RunService.Heartbeat:Connect(function() if Flight.Enabled and Flight.BodyVelocity then -- حساب السرعة الحالية local currentSpeed = Flight.FlySpeed if Flight.FlyBoost then currentSpeed = Flight.FlyBoostSpeed end -- حساب الحركة local velocity = Vector3.new(0, 0, 0) if UpPressed then velocity = velocity + Vector3.new(0, currentSpeed, 0) end if DownPressed then velocity = velocity + Vector3.new(0, -currentSpeed, 0) end -- تطبيق الحركة Flight.BodyVelocity.Velocity = velocity -- تأثيرات بصرية للتسريع if Flight.FlyBoost then local flash = math.sin(tick() * 8) * 0.2 + 0.8 FlyBoostButton.BackgroundTransparency = flash else FlyBoostButton.BackgroundTransparency = 0 end end end) -- ============ تحديث مؤشر السرعة ============ local SpeedIndicator = Instance.new("TextLabel") SpeedIndicator.Name = "SpeedIndicator" SpeedIndicator.Size = UDim2.new(0, 150, 0, 40) SpeedIndicator.Position = UDim2.new(0.6, 0, 0.3, 0) SpeedIndicator.BackgroundColor3 = Color3.fromRGB(20, 20, 30) SpeedIndicator.BackgroundTransparency = 0.5 SpeedIndicator.TextColor3 = Color3.fromRGB(255, 255, 255) SpeedIndicator.Text = "MODE: NORMAL" SpeedIndicator.Font = Enum.Font.GothamBold SpeedIndicator.TextSize = 14 SpeedIndicator.Parent = ScreenGui -- شريط السرعة local SpeedBar = Instance.new("Frame") SpeedBar.Name = "SpeedBar" SpeedBar.Size = UDim2.new(0, 120, 0, 8) SpeedBar.Position = UDim2.new(0.6, 0, 0.35, 0) SpeedBar.BackgroundColor3 = Color3.fromRGB(50, 50, 60) SpeedBar.BorderSizePixel = 0 SpeedBar.Parent = ScreenGui local SpeedFill = Instance.new("Frame") SpeedFill.Name = "SpeedFill" SpeedFill.Size = UDim2.new(0.16, 0, 1, 0) -- 16/100 = 16% SpeedFill.BackgroundColor3 = Color3.fromRGB(46, 204, 113) SpeedFill.BorderSizePixel = 0 SpeedFill.Parent = SpeedBar -- تحديث المؤشر RunService.Heartbeat:Connect(function() local character = Player.Character if not character then return end local humanoid = character:FindFirstChild("Humanoid") if not humanoid then return end if Flight.Enabled then -- وضع الطيران SpeedIndicator.Text = "MODE: FLIGHT" SpeedIndicator.TextColor3 = Color3.fromRGB(52, 152, 219) -- حساب السرعة local currentSpeed = Flight.FlySpeed local maxSpeed = Flight.FlyBoostSpeed if Flight.FlyBoost then SpeedIndicator.Text = "MODE: FLIGHT BOOST" SpeedIndicator.TextColor3 = Color3.fromRGB(255, 140, 0) currentSpeed = Flight.FlyBoostSpeed end -- تحديث الشريط local fillPercent = currentSpeed / maxSpeed SpeedFill.Size = UDim2.new(fillPercent, 0, 1, 0) if Flight.FlyBoost then SpeedFill.BackgroundColor3 = Color3.fromRGB(255, 140, 0) else SpeedFill.BackgroundColor3 = Color3.fromRGB(52, 152, 219) end elseif WalkSpeed.Enabled then -- وضع السرعة SpeedIndicator.Text = "MODE: FAST WALK" SpeedIndicator.TextColor3 = Color3.fromRGB(46, 204, 113) -- حساب السرعة local currentSpeed = humanoid.WalkSpeed local maxSpeed = WalkSpeed.FastSpeed if WalkSpeed.WalkBoost then SpeedIndicator.Text = "MODE: SPEED BOOST" SpeedIndicator.TextColor3 = Color3.fromRGB(231, 76, 60) end -- تحديث الشريط local fillPercent = currentSpeed / maxSpeed SpeedFill.Size = UDim2.new(fillPercent, 0, 1, 0) if WalkSpeed.WalkBoost then SpeedFill.BackgroundColor3 = Color3.fromRGB(231, 76, 60) else SpeedFill.BackgroundColor3 = Color3.fromRGB(46, 204, 113) end else -- وضع عادي SpeedIndicator.Text = "MODE: NORMAL" SpeedIndicator.TextColor3 = Color3.fromRGB(200, 200, 200) local currentSpeed = humanoid.WalkSpeed local fillPercent = currentSpeed / 50 -- 16/50 SpeedFill.Size = UDim2.new(fillPercent, 0, 1, 0) SpeedFill.BackgroundColor3 = Color3.fromRGB(150, 150, 150) end end) -- ============ نظام إخفاء/إظهار ============ local GUIHidden = false HideButton.MouseButton1Click:Connect(function() GUIHidden = not GUIHidden if GUIHidden then -- إخفاء كل الأزرار FlyButton.Visible = false SpeedButton.Visible = false HideButton.Visible = false UpButton.Visible = false DownButton.Visible = false FlyBoostButton.Visible = false SpeedBoostButton.Visible = false SpeedIndicator.Visible = false SpeedBar.Visible = false HideButton.BackgroundColor3 = Color3.fromRGB(52, 152, 219) HideButton.Text = "👁️\nSHOW" -- زر صغير للإظهار local ShowButton = Instance.new("TextButton") ShowButton.Name = "ShowButton" ShowButton.Size = UDim2.new(0, 40, 0, 40) ShowButton.Position = UDim2.new(0.95, 0, 0.05, 0) ShowButton.BackgroundColor3 = Color3.fromRGB(52, 152, 219) ShowButton.BorderSizePixel = 0 ShowButton.Text = "👁️" ShowButton.TextColor3 = Color3.fromRGB(255, 255, 255) ShowButton.Font = Enum.Font.GothamBold ShowButton.TextSize = 16 ShowButton.ZIndex = 10 ShowButton.Parent = ScreenGui ShowButton.MouseButton1Click:Connect(function() -- إظهار الأزرار الأساسية FlyButton.Visible = true SpeedButton.Visible = true HideButton.Visible = true SpeedIndicator.Visible = true SpeedBar.Visible = true -- إظهار الأزرار حسب النظام النشط if Flight.Enabled then UpButton.Visible = true DownButton.Visible = true FlyBoostButton.Visible = true elseif WalkSpeed.Enabled then SpeedBoostButton.Visible = true end ShowButton:Destroy() GUIHidden = false HideButton.Text = "👁️\nHIDE" HideButton.BackgroundColor3 = Color3.fromRGB(155, 89, 182) end) warn("👁️ GUI Hidden") else -- إظهار الأزرار الأساسية FlyButton.Visible = true SpeedButton.Visible = true HideButton.Visible = true SpeedIndicator.Visible = true SpeedBar.Visible = true -- إظهار الأزرار حسب النظام النشط if Flight.Enabled then UpButton.Visible = true DownButton.Visible = true FlyBoostButton.Visible = true elseif WalkSpeed.Enabled then SpeedBoostButton.Visible = true end HideButton.Text = "👁️\nHIDE" HideButton.BackgroundColor3 = Color3.fromRGB(155, 89, 182) warn("👁️ GUI Visible") end end) -- ============ إعادة التطبيق عند تغيير الشخصية ============ Player.CharacterAdded:Connect(function(character) task.wait(1.5) if Flight.Enabled then ToggleFlight() -- إعادة تفعيل الطيران elseif WalkSpeed.Enabled then local humanoid = character:WaitForChild("Humanoid") if WalkSpeed.WalkBoost then humanoid.WalkSpeed = WalkSpeed.FastSpeed else humanoid.WalkSpeed = WalkSpeed.NormalSpeed end end end) -- ============ رسالة البدء ============ task.wait(2) print("\n") print("══════════════════════════════════════════════") print("🚀 ULTIMATE FLIGHT & SPEED SCRIPT") print("📱 School Project - Combined System") print("══════════════════════════════════════════════") print("🎮 TWO SYSTEMS IN ONE:") print("") print("✈️ FLIGHT SYSTEM:") print(" • Normal Speed: 35") print(" • Boost Speed: 70") print(" • Controls: UP/DOWN buttons") print(" • Boost: 🚀 button") print("") print("🏃 SPEED SYSTEM:") print(" • Normal Speed: 16") print(" • Boost Speed: 50") print(" • Boost: ⚡ button") print("") print("⚠️ NOTE: Systems CANNOT work at the same time") print("══════════════════════════════════════════════") warn("✅ ULTIMATE SCRIPT LOADED!") warn("✈️ Choose either FLIGHT or SPEED system") warn("👁️ Tap eye button to hide/show interface")