function VehicleSoundComponent.updateStatus(Z,j)if j.Crashed and j.Crashed==true then local j=CarSoundsFolder.Crashed[tonumber(math.random(1,3))]:Clone()j.Parent=Z.model.PrimaryPart j:Play()Debris:AddItem(j,3)end if j.SharpTurn~=nil then if j.SharpTurn==true and Z.controller:getSpeed()>80 then(TweenService:Create(Z.skid,tweenInfo,{Volume=.5})):Play()else(TweenService:Create(Z.skid,tweenInfo,{Volume=0})):Play()end end if j.Boost~=nil then if j.Boost then(TweenService:Create(Z.boost,tweenInfo,{Volume=.5})):Play()else(TweenService:Create(Z.boost,tweenInfo,{Volume=0})):Play()end end end return VehicleSoundComponent
--[[
	Plays any relevant status related sound
]]
function VehicleSoundComponent:updateStatus(statusChanged)
	if statusChanged.Crashed and statusChanged.Crashed == true then
		local crashSound = CarSoundsFolder.Crashed[tonumber(math.random(1, 3))]:Clone()

		-- Parent then destroy it to play at that location
		crashSound.Parent = self.model.PrimaryPart
		crashSound:Play()
		Debris:AddItem(crashSound, 3)
	end

	if statusChanged.SharpTurn ~= nil then
		if statusChanged.SharpTurn == true and self.controller:getSpeed() > 80 then
			TweenService:Create(self.skid, tweenInfo, { Volume = 0.5 }):Play()
		else
			TweenService:Create(self.skid, tweenInfo, { Volume = 0 }):Play()
		end
	end

	if statusChanged.Boost ~= nil then
		if statusChanged.Boost then
			TweenService:Create(self.boost, tweenInfo, { Volume = 0.5 }):Play()
		else
			TweenService:Create(self.boost, tweenInfo, { Volume = 0 }):Play()
		end
	end
end

return VehicleSoundComponent
