Im trying to make a spaceship everything works good besides the fact that the speed slows down if i push the nose of my spaceship up or down. I Think it has to do with the formula im using to determine the velocity of the bodyvelocity, this is the script:
local Ship = script.Parent
local primary = Ship:WaitForChild("Primary")
local seat = Ship:WaitForChild("VehicleSeat")
local BV = primary:WaitForChild("BodyVelocity")
local Speed = Ship:WaitForChild("CurrentSpeed")
local LookPart = Ship:WaitForChild("LookPart")
local Hoover = Ship:WaitForChild("Hoover")
Hoover.Value = true
local BP = primary:WaitForChild("BodyPosition")
while wait() do
BV.Velocity = LookPart.CFrame.lookVector * Speed.Value
if Hoover.Value == false and Speed.Value >= 1 then
BP.Position = seat.Position
end
end

1 comment
Wait you mean like making the player control the ship instead of the character?