Ok. In this topic I want to make the gear change is smooth like from gear 1 to gear 2
this is my script:
local CurrentPitch = math.abs(carPrim.Velocity.Magnitude)
if carPrim.Velocity.Magnitude > 1 then
seatPart.Idle.Pitch = 0.75 + CurrentPitch/gear.Gear1
end
if carPrim.Velocity.Magnitude > 100 then
seatPart.Idle.Pitch = 0.7 + CurrentPitch/gear.Gear2
end
if carPrim.Velocity.Magnitude > 200 then
seatPart.Idle.Pitch = 0.7 + CurrentPitch/gear.Gear3
end
if carPrim.Velocity.Magnitude > 300 then
seatPart.Idle.Pitch = 0.7 + CurrentPitch/gear.Gear4
end
if carPrim.Velocity.Magnitude > 400 then
seatPart.Idle.Pitch = 0.7 + CurrentPitch/gear.Gear5
end
This isn’t the full script btw
CarPrim = car chassis (or base, for short)
seatPart = vehicleSeat that the humanoid is seatPart to
The engine sound (idle) is inside the seatPart
Solution is really appreciated.