Hello, I recently commissioned an boat that uses BodyVelocity and BodyAngularVelocity, however whenever I throttle with an W/S key and then turn, it continues going in the direction the vehicle was initially turning to when I held down the W/S keys. Here is my code.
Any support would be greatly appreciated.
local Seat = script.Parent
local BV = Seat.BodyVelocity
local AngularVelocity = Seat.Turn
local PowerMultiplier = 25
BV.MaxForce = Vector3.new(math.huge, 0, math.huge)
AngularVelocity.MaxTorque = Vector3.new(0, 100000000, 0)
BV.Velocity = Vector3.new(0, 0, 0)
Seat.Changed:Connect(function()
local power = PowerMultiplier * Seat.Throttle
BV.Velocity = Seat.CFrame.LookVector * power
AngularVelocity.AngularVelocity = Vector3.new(0, -Seat.Steer, 0)
end)