So i am making a Boat which got a boyancy on gerstner waves but i have a hard time to figure how to steer the boat. I have figured out how to throttle it with a bodyvelocity. I have also made a quite scuffed steering system but i need help to make a new.
This is how it works so far:
External MediaUseful Information:
https://gyazo.com/c9746b3f22cd11dda93b5d82a8d4df36
local Seat = script.Parent.VehicleSeat
local Engine = script.Parent.Engine
local TS = game:GetService(“TweenService”)
local Speed = 15
Seat:GetPropertyChangedSignal(“Throttle”):Connect(function()
Engine.Velocity = Vector3.new(Seat.Throttle * -Speed,0,0)
print(Seat.Throttle*15)
end)
Seat:GetPropertyChangedSignal(“Steer”):Connect(function()
local goal = {
}
goal.Orientation = Vector3.new(0, Seat.Steer * -25, 0)
local tweenInfo = TweenInfo.new(1)
local tween = TS:Create(script.Parent, tweenInfo, goal)
tween:Play()
end)