function VehicleSoundComponent.updateSounds(y)local q=y.controller:getSpeed()if q and q<3 then(TweenService:Create(y.idle,tweenInfo,{Volume=.3})):Play();(TweenService:Create(y.engine,tweenInfo,{Volume=q/5})):Play()else(TweenService:Create(y.idle,tweenInfo,{Volume=0})):Play();(TweenService:Create(y.engine,tweenInfo,{Volume=.8,PlaybackSpeed=.5+((q or 0)+math.random(0,20))/100})):Play()end end

function VehicleSoundComponent:updateSounds()
	local speed = self.controller:getSpeed()

	if speed and speed < 3 then
		TweenService:Create(self.idle, tweenInfo, {Volume = 0.3}):Play()
		TweenService:Create(self.engine, tweenInfo, {Volume = speed / 5}):Play()
	else
		TweenService:Create(self.idle, tweenInfo, {Volume = 0}):Play()
		TweenService:Create(
			self.engine,
			tweenInfo,
			{Volume = 0.8, PlaybackSpeed = 0.5 + (((speed or 0) + math.random(0, 20)) / 100)}
		):Play()
	end
end
