function VehicleSoundComponent.updateStatus(f,c)if c.Crashed and c.Crashed==true then local c=CarSoundsFolder.Crashed[tonumber(math.random(1,3))]:Clone()c.Parent=f.model.PrimaryPart c:Play()Debris:AddItem(c,3)end if c.SharpTurn~=nil then if c.SharpTurn==true and f.controller:getSpeed()>80 then(TweenService:Create(f.skid,tweenInfo,{Volume=.5})):Play()else(TweenService:Create(f.skid,tweenInfo,{Volume=0})):Play()end end if c.Boost~=nil then if c.Boost then(TweenService:Create(f.boost,tweenInfo,{Volume=.5})):Play()else(TweenService:Create(f.boost,tweenInfo,{Volume=0})):Play()end end end return VehicleSoundComponent

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
