local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local CoreGui = game:GetService("CoreGui") local player = Players.LocalPlayer local camera = workspace.CurrentCamera if CoreGui:FindFirstChild("DeltaFlyMenu") then CoreGui:FindFirstChild("DeltaFlyMenu"):Destroy() end local flying = false local speed = 50 local minSpeed = 10 local maxSpeed = 300 local speedStep = 10 local bodyGyro local flyConnection local charAddedConnection local screenGui = Instance.new("ScreenGui") screenGui.Name = "DeltaFlyMenu" screenGui.ResetOnSpawn = false local ok = pcall(function() screenGui.Parent = CoreGui end) if not ok then screenGui.Parent = player:WaitForChild("PlayerGui") end local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 220, 0, 140) mainFrame.Position = UDim2.new(0.05, 0, 0.4, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 30) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 8) local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, -34, 0, 30) titleLabel.Position = UDim2.new(0, 0, 0, 0) titleLabel.BackgroundColor3 = Color3.fromRGB(40, 40, 50) titleLabel.Text = "Delta Fly Menu" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.Font = Enum.Font.GothamBold titleLabel.TextSize = 14 titleLabel.Parent = mainFrame Instance.new("UICorner", titleLabel).CornerRadius = UDim.new(0, 8) -- Bouton Fermer et Désactiver (X) local closeButton = Instance.new("TextButton") closeButton.Name = "CloseButton" closeButton.Size = UDim2.new(0, 30, 0, 30) closeButton.Position = UDim2.new(1, -30, 0, 0) closeButton.BackgroundColor3 = Color3.fromRGB(170, 45, 45) closeButton.Text = "X" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.Font = Enum.Font.GothamBold closeButton.TextSize = 14 closeButton.Parent = mainFrame Instance.new("UICorner", closeButton).CornerRadius = UDim.new(0, 8) local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0.9, 0, 0, 35) toggleButton.Position = UDim2.new(0.05, 0, 0.3, 0) toggleButton.BackgroundColor3 = Color3.fromRGB(200, 60, 60) toggleButton.Text = "Fly : DÉSACTIVÉ" toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleButton.Font = Enum.Font.GothamSemibold toggleButton.TextSize = 14 toggleButton.Parent = mainFrame Instance.new("UICorner", toggleButton).CornerRadius = UDim.new(0, 6) local speedLabel = Instance.new("TextLabel") speedLabel.Size = UDim2.new(0.5, 0, 0, 35) speedLabel.Position = UDim2.new(0.25, 0, 0.65, 0) speedLabel.BackgroundTransparency = 1 speedLabel.Text = "Vitesse : " .. speed speedLabel.TextColor3 = Color3.fromRGB(230, 230, 230) speedLabel.Font = Enum.Font.Gotham speedLabel.TextSize = 14 speedLabel.Parent = mainFrame local minusButton = Instance.new("TextButton") minusButton.Size = UDim2.new(0.18, 0, 0, 35) minusButton.Position = UDim2.new(0.05, 0, 0.65, 0) minusButton.BackgroundColor3 = Color3.fromRGB(55, 55, 65) minusButton.Text = "-" minusButton.TextColor3 = Color3.fromRGB(255, 255, 255) minusButton.Font = Enum.Font.GothamBold minusButton.TextSize = 18 minusButton.Parent = mainFrame Instance.new("UICorner", minusButton).CornerRadius = UDim.new(0, 6) local plusButton = Instance.new("TextButton") plusButton.Size = UDim2.new(0.18, 0, 0, 35) plusButton.Position = UDim2.new(0.77, 0, 0.65, 0) plusButton.BackgroundColor3 = Color3.fromRGB(55, 55, 65) plusButton.Text = "+" plusButton.TextColor3 = Color3.fromRGB(255, 255, 255) plusButton.Font = Enum.Font.GothamBold plusButton.TextSize = 18 plusButton.Parent = mainFrame Instance.new("UICorner", plusButton).CornerRadius = UDim.new(0, 6) local function getCharacterParts() local char = player.Character if not char then return nil, nil end return char:FindFirstChild("HumanoidRootPart"), char:FindFirstChildOfClass("Humanoid") end local function stopFly() flying = false if toggleButton and toggleButton.Parent then toggleButton.Text = "Fly : DÉSACTIVÉ" toggleButton.BackgroundColor3 = Color3.fromRGB(200, 60, 60) end if flyConnection then flyConnection:Disconnect() flyConnection = nil end if bodyGyro then bodyGyro:Destroy() bodyGyro = nil end local hrp = getCharacterParts() if hrp then hrp.AssemblyLinearVelocity = Vector3.zero end end local function startFly() local hrp, humanoid = getCharacterParts() if not hrp or not humanoid then return end stopFly() flying = true toggleButton.Text = "Fly : ACTIVÉ" toggleButton.BackgroundColor3 = Color3.fromRGB(60, 180, 75) bodyGyro = Instance.new("BodyGyro") bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge) bodyGyro.P = 9e4 bodyGyro.CFrame = hrp.CFrame bodyGyro.Parent = hrp flyConnection = RunService.Heartbeat:Connect(function() local currentHrp, currentHum = getCharacterParts() if not flying or not currentHrp or not currentHum then return end if currentHrp.Anchored then currentHrp.Anchored = false end local camCFrame = camera.CFrame local moveDir = Vector3.zero if currentHum.MoveDirection.Magnitude > 0 then local relDir = camCFrame:VectorToObjectSpace(currentHum.MoveDirection) moveDir += camCFrame.LookVector * (-relDir.Z) moveDir += camCFrame.RightVector * relDir.X end if UserInputService:IsKeyDown(Enum.KeyCode.W) then moveDir += camCFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then moveDir -= camCFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then moveDir -= camCFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then moveDir += camCFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.Space) then moveDir += Vector3.yAxis end if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then moveDir -= Vector3.yAxis end if moveDir.Magnitude > 0 then moveDir = moveDir.Unit end currentHrp.AssemblyLinearVelocity = moveDir * speed if bodyGyro and bodyGyro.Parent then bodyGyro.CFrame = camCFrame end end) end local function destroyScript() stopFly() if charAddedConnection then charAddedConnection:Disconnect() charAddedConnection = nil end if screenGui then screenGui:Destroy() screenGui = nil end end toggleButton.MouseButton1Click:Connect(function() if flying then stopFly() else startFly() end end) plusButton.MouseButton1Click:Connect(function() speed = math.clamp(speed + speedStep, minSpeed, maxSpeed) speedLabel.Text = "Vitesse : " .. speed end) minusButton.MouseButton1Click:Connect(function() speed = math.clamp(speed - speedStep, minSpeed, maxSpeed) speedLabel.Text = "Vitesse : " .. speed end) closeButton.MouseButton1Click:Connect(function() destroyScript() end) charAddedConnection = player.CharacterAdded:Connect(function() if flying then stopFly() end end)