local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character.Humanoid PROBLEM1:Sit(humanoid) local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local plane = PROBLEM2 local body = plane local speed = PROBLEM3 local maxSpeed = PROBLEM4 local throttlePower = 20 local turnSpeed = 2 local pitch = 0 local yaw = 0 local roll = 0 UIS.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.PROBLEM5 then PROBLEM6 += throttlePower elseif input.KeyCode == Enum.KeyCode.PROBLEM7 then PROBLEM8 -= throttlePower end speed = math.clamp(speed, 0, maxSpeed) end) RunService.Heartbeat:Connect(function(dt) if UIS:IsKeyDown(Enum.KeyCode.PROBLEM10) then yaw += turnSpeed * dt end if UIS:IsKeyDown(Enum.KeyCode.PROBLEM11) then yaw -= turnSpeed * dt end if UIS:IsKeyDown(Enum.KeyCode.PROBLEM12) then pitch -= turnSpeed * dt end if UIS:IsKeyDown(Enum.KeyCode.PROBLEM13) then pitch += turnSpeed * dt end if UIS:IsKeyDown(Enum.KeyCode.PROBLEM14) then roll += turnSpeed * dt end if UIS:IsKeyDown(Enum.KeyCode.PROBLEM15) then roll -= turnSpeed * dt end local rotation = CFrame.Angles(0, yaw, roll) * CFrame.Angles(pitch, 0, 0) body.AlignOrientation.CFrame = rotation body.LinearVelocity.VectorVelocity = body.CFrame.LookVector * speed end)
save