So I want to make my plane fly using VectorForce but I don’t know how to properly make it. It goes to fast.
local speed = 30
local function getModelMass()
local mass = 0
for i,v in ipairs(plane:GetDescendants()) do
if v:IsA("BasePart") then
mass += v.AssemblyMass
end
end
return mass
end
local mass = getModelMass()
local force = (mass * FlyPart.CFrame.LookVector * speed)
VectorForce.Force = force
RunService.Heartbeat:Connect(function(delta)
if isOn.Value == true then
--FlyPart.AssemblyLinearVelocity = FlyPart.CFrame.LookVector * speed.Value
local mass = getModelMass()
local force = (mass * FlyPart.CFrame.LookVector * speed.Value)
VectorForce.Force = force
end
end)