How do i make boat turn

i have a boat that works (most of the time) but theres just one problem, it can’t turn properly. I’m using AlignOrientation to turn and LinearVelocity for the movement

local Boat = script.Parent
local Seat = Boat.VehicleSeat

local Engine = Boat.Engine

Seat:GetPropertyChangedSignal('Occupant'):Connect(function()
	local occupant = Seat.Occupant
	
	if not occupant then return end
	
	for _, v in occupant.Parent:GetChildren() do
		if not v:IsA('BasePart') then continue end
		
		v.Massless = true
	end
end)

Seat.Changed:Connect(function()
	local steer = Seat.SteerFloat * Seat.TurnSpeed
	local throttle = -(Seat.ThrottleFloat * Seat.MaxSpeed)
	
	Engine.LinearVelocity.VectorVelocity = Vector3.new(steer, 5, throttle)
	Engine.AlignOrientation.PrimaryAxis = Vector3.new(0, 0, steer)
end)

Just use Torque | Roblox Creator Documentation to turn.
Just a suggestion, your video doesn’t show anything about the boat, just you spawning and running toward it. Try using Play Here instead of Play, or record your video when you are just about to jump in the boat.

1 Like

forgot that existed, im gonna try to implement that. ill get back to you later

oh, i didnt notice that, sorry about that.

thank you. it works beautifully

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.