I’ve made a basic submarine and its almost done, but whenever you ascend/descend the front tilts up/down. I’ve tried alot of things to keep it upright but nothing seems to be working.
I think AngularVelocity or something similar would work but I cant find anything on how I would do this.
This is what happens when I descend, it tilts at the front
This is what I want to happen
this is the server-side code, the submarine moves using VectorForce
events.Descend1.OnServerEvent:Connect(function(plr, seat)
seat.Parent.Center.VectorForce.Force = Vector3.new(seat.Parent.Center.VectorForce.Force.X, -300000, seat.Parent.Center.VectorForce.Force.Z)
end)
events.Ascend1.OnServerEvent:Connect(function(plr, seat)
seat.Parent.Center.VectorForce.Force = Vector3.new(seat.Parent.Center.VectorForce.Force.X, 300000, seat.Parent.Center.VectorForce.Force.Z)
end)
Any ideas on how to fix this?