wait(2)car.Wheels.FL:WaitForChild("\083\081")local H=car.Wheels.FL.Size.Y/2+.1 function LocalUpdate(H,J,V,i)if H=="\083\116\111\112\071\114\097\118\101\108"then car.DriveSeat.Gravel.Volume=0 return end if H=="\083\116\111\112\083\110\111\119"then car.DriveSeat.SnowSound.Volume=0 return end if J==Enum.Material.Asphalt or J==Enum.Material.Slate or J==Enum.Material.Concrete or J==Enum.Material.Basalt or J==Enum.Material.Brick or J==Enum.Material.Cobblestone or J==Enum.Material.Rock or J==Enum.Material.Sandstone or J==Enum.Material.Concrete or J==Enum.Material.Pavement or J==Enum.Material.Limestone or J==Enum.Material.Wood or J==Enum.Material.Salt then if H.stress>.6 then H.wheel.SQ.Volume=(H.stress-.1)*3 H.wheel.SQ.PlaybackSpeed=H.stress+.15 H.wheel.Smoke.Rate=H.stress*5 else H.wheel.SQ.Volume=H.stress-.1 H.wheel.SQ.PlaybackSpeed=H.stress+.15 H.wheel.Smoke.Rate=0 end H.wheel.Dirt.Rate=0 H.wheel.Sand.Rate=0 H.wheel.Snow.Rate=0 H.wheel.GravelEmitter.Rate=0 elseif J==Enum.Material.Marble or J==Enum.Material.Plastic or J==Enum.Material.SmoothPlastic or J==Enum.Material.Metal or J==Enum.Material.DiamondPlate or J==Enum.Material.CorrodedMetal then if H.stress>.6 then H.wheel.SQ.Volume=(H.stress-.1)*3 H.wheel.SQ.PlaybackSpeed=H.stress+.15 H.wheel.Smoke.Rate=0 else H.wheel.SQ.Volume=H.stress-.1 H.wheel.SQ.PlaybackSpeed=H.stress+.15 H.wheel.Smoke.Rate=0 end H.wheel.Dirt.Rate=0 H.wheel.Sand.Rate=0 H.wheel.Snow.Rate=0 H.wheel.GravelEmitter.Rate=0 elseif J==Enum.Material.Grass or J==Enum.Material.LeafyGrass then H.wheel.Dirt.Rate=H.stress*10 H.wheel.SQ.Volume=0 H.wheel.SQ.PlaybackSpeed=0 H.wheel.Smoke.Rate=0 H.wheel.Sand.Rate=0 H.wheel.Snow.Rate=0 H.wheel.GravelEmitter.Rate=0 local J=1 if car.DriveSeat.Velocity.Magnitude<=.9 then J=0 end local V=(H.stress*2+car.DriveSeat.Velocity.Magnitude/80)+.5*J if V>2.1 then V=2.1 end car.DriveSeat.Gravel.PlaybackSpeed=V car.DriveSeat.Gravel.Volume=V*8 car.DriveSeat.Gravel.PitchShiftSoundEffect.Octave=1-V/4 elseif J==Enum.Material.Ground or J==Enum.Material.Mud then if car.DriveSeat.Velocity.Magnitude>=30 then H.wheel.Dirt.Rate=H.stress*10+car.DriveSeat.Velocity.Magnitude/10 else H.wheel.Dirt.Rate=H.stress*10 end H.wheel.SQ.Volume=0 H.wheel.SQ.PlaybackSpeed=0 H.wheel.Smoke.Rate=0 H.wheel.Sand.Rate=0 H.wheel.Snow.Rate=0 H.wheel.GravelEmitter.Rate=0 local J=1 if car.DriveSeat.Velocity.Magnitude<=.9 then J=0 end local V=(H.stress*2+car.DriveSeat.Velocity.Magnitude/80)+.5*J if V>2.1 then V=2.1 end car.DriveSeat.Gravel.PlaybackSpeed=V car.DriveSeat.Gravel.Volume=V*8 car.DriveSeat.Gravel.PitchShiftSoundEffect.Octave=1-V/4 elseif J==Enum.Material.Sand then if car.DriveSeat.Velocity.Magnitude>=30 then H.wheel.Sand.Rate=H.stress*10+car.DriveSeat.Velocity.Magnitude/10 else H.wheel.Sand.Rate=H.stress*10 end if i~="\084\101\114\114\097\105\110"then H.wheel.Sand.Color=ColorSequence.new(V)else H.wheel.Sand.Color=ColorSequence.new(Color3.fromRGB(143,126,95))end H.wheel.SQ.Volume=0 H.wheel.SQ.PlaybackSpeed=0 H.wheel.Smoke.Rate=0 H.wheel.Dirt.Rate=0 H.wheel.Snow.Rate=0 H.wheel.GravelEmitter.Rate=0 local J=1 if car.DriveSeat.Velocity.Magnitude<=.9 then J=0 end local P=(H.stress*2+car.DriveSeat.Velocity.Magnitude/80)+.5*J if P>2.1 then P=2.1 end if(V.r>=V.g and V.r-V.b<.11 or V.g>=V.r and V.g-V.b<.11)and i~="\084\101\114\114\097\105\110"then car.DriveSeat.SnowSound.PlaybackSpeed=P car.DriveSeat.SnowSound.Volume=P*20 car.DriveSeat.SnowSound.PitchShiftSoundEffect.Octave=1-P/4 else car.DriveSeat.Gravel.PlaybackSpeed=P car.DriveSeat.Gravel.Volume=P*8 car.DriveSeat.Gravel.PitchShiftSoundEffect.Octave=1-P/4 end elseif J==Enum.Material.Snow then if car.DriveSeat.Velocity.Magnitude>=30 then H.wheel.Snow.Rate=H.stress*10+car.DriveSeat.Velocity.Magnitude/10 else H.wheel.Snow.Rate=H.stress*10 end H.wheel.SQ.Volume=0 H.wheel.SQ.PlaybackSpeed=0 H.wheel.Smoke.Rate=0 H.wheel.Dirt.Rate=0 H.wheel.Sand.Rate=0 H.wheel.GravelEmitter.Rate=0 local J=1 if car.DriveSeat.Velocity.Magnitude<=.9 then J=0 end local V=(H.stress*2+car.DriveSeat.Velocity.Magnitude/80)+.5*J if V>2.1 then V=2.1 end car.DriveSeat.SnowSound.PlaybackSpeed=V car.DriveSeat.SnowSound.Volume=V*20 car.DriveSeat.SnowSound.PitchShiftSoundEffect.Octave=1-V/4 elseif J==Enum.Material.Pebble then if car.DriveSeat.Velocity.Magnitude>=30 then H.wheel.GravelEmitter.Rate=H.stress*10+car.DriveSeat.Velocity.Magnitude/10 else H.wheel.GravelEmitter.Rate=H.stress*10 end H.wheel.GravelEmitter.Color=ColorSequence.new(V)local J=1 if car.DriveSeat.Velocity.Magnitude<=.9 then J=0 end local i=(H.stress*2+car.DriveSeat.Velocity.Magnitude/80)+.5*J if i>2.1 then i=2.1 end car.DriveSeat.Gravel.PlaybackSpeed=i car.DriveSeat.Gravel.Volume=i*8 car.DriveSeat.Gravel.PitchShiftSoundEffect.Octave=1-i/4 H.wheel.Dirt.Rate=0 H.wheel.Sand.Rate=0 H.wheel.Snow.Rate=0 H.wheel.SQ.Volume=0 H.wheel.SQ.PlaybackSpeed=0 H.wheel.Smoke.Rate=0 else H.wheel.Dirt.Rate=0 H.wheel.GravelEmitter.Rate=0 H.wheel.Sand.Rate=0 H.wheel.SQ.Volume=0 H.wheel.SQ.PlaybackSpeed=0 H.wheel.Smoke.Rate=0 H.wheel.Snow.Rate=0 end end while wait()do GravelSound=false SnowSound=false for J,V in pairs(Wheels)do local i=car.DriveSeat.Velocity.Magnitude local P=V.wheel.RotVelocity.Magnitude local F=0 local q=.000126 local o=(i/1.298)*(2.6/V.wheel.Size.Y)local L=math.abs(P-o)if _WHEELTUNE.TireWearOn then if i<4 then V.Heat=math.min(V.Heat+_WHEELTUNE.RegenSpeed/10000,V.BaseHeat)else if L>1 then V.Heat=V.Heat-((L*q)*V.WearSpeed)/28 elseif V.Heat>=V.BaseHeat then V.Heat=V.BaseHeat end end end if V.wheel.Name=="\070\076"or V.wheel.Name=="\070\082"or V.wheel.Name=="\070"then F=_WHEELTUNE.FMinFriction+V.Heat q=(q-.0001188*cValues.Brake.Value)*(1-math.abs(cValues.SteerC.Value))+1.26e-06*math.abs(cValues.SteerC.Value)else F=_WHEELTUNE.RMinFriction+V.Heat end if math.ceil(((P/.774)/i)*100)<8 then V.wheel.CustomPhysicalProperties=PhysicalProperties.new(V.x,F*_WHEELTUNE.WheelLockRatio,V.elast,V.fWeight,V.eWeight)V.Heat=math.max(V.Heat,0)elseif _Tune.TCSEnabled and(cValues.TCS.Value==false and math.ceil(((P/.774)/i)*100)>80)then V.wheel.CustomPhysicalProperties=PhysicalProperties.new(V.x,F*_WHEELTUNE.TCSOffRatio,V.elast,V.fWeight,V.eWeight)V.Heat=math.max(V.Heat,0)elseif math.ceil(((P/.774)/i)*100)>130 then V.wheel.CustomPhysicalProperties=PhysicalProperties.new(V.x,F*_WHEELTUNE.WheelspinRatio,V.elast,V.fWeight,V.eWeight)V.Heat=math.max(V.Heat,0)else V.wheel.CustomPhysicalProperties=PhysicalProperties.new(V.x,F,V.elast,V.fWeight,V.eWeight)V.Heat=math.min(V.Heat,V.BaseHeat)end local U=math.abs((((L+o)/.774)*.774-o)/15)if U>.05 and U>V.stress then V.stress=math.min(V.stress+.03,1)else V.stress=math.max(V.stress-.03,U)end local E=script.Parent.Tires[V.wheel.Name]E.First.Second.Image.ImageColor3=Color3.new(math.min(V.stress*2,1),1-V.stress,0)E.First.Position=UDim2.new(0,0,1-V.Heat/V.BaseHeat,0)E.First.Second.Position=UDim2.new(0,0,V.Heat/V.BaseHeat,0)local f=Ray.new(V.wheel.Position+Vector3.new(0,5,0),Vector3.new(0,-5,0)*H)local I,S,X,O=workspace:FindPartOnRay(f,car,false,true)if not O then O=Enum.Material.Air end if O==Enum.Material.Pebble or O==Enum.Material.Mud or O==Enum.Material.Ground or O==Enum.Material.Sand and(I.Color.r>=I.Color.g and I.Color.r-I.Color.b>=.11 or I.Color.g>=I.Color.r and I.Color.g-I.Color.b>=.11 or I.Name=="\084\101\114\114\097\105\110")or O==Enum.Material.Grass or O==Enum.Material.LeafyGrass then GravelSound=true end if O==Enum.Material.Snow or O==Enum.Material.Sand and((I.Color.r>=I.Color.g and I.Color.r-I.Color.b<.11 or I.Color.g>=I.Color.r and I.Color.g-I.Color.b<.11)and I.Name~="\084\101\114\114\097\105\110")then SnowSound=true end if not I then LocalUpdate(V,O,BrickColor.Black())car.TireStress:FireServer(V,O,BrickColor.Black())else LocalUpdate(V,O,I.Color,I.Name)car.TireStress:FireServer(V,O,I.Color,I.Name)end end if GravelSound==false then car.TireStress:FireServer("\083\116\111\112\071\114\097\118\101\108")LocalUpdate("\083\116\111\112\071\114\097\118\101\108")end if SnowSound==false then car.TireStress:FireServer("\083\116\111\112\083\110\111\119")LocalUpdate("\083\116\111\112\083\110\111\119")end end

wait(2)
car.Wheels.FL:WaitForChild('SQ')
local Distance = car.Wheels.FL.Size.Y/2+0.1

function LocalUpdate(v, material, color, objn)
	if v == 'StopGravel' then 
		car.DriveSeat.Gravel.Volume = 0
		return
	end
	if v == 'StopSnow' then 
		car.DriveSeat.SnowSound.Volume = 0
		return
	end
	if (material == Enum.Material.Asphalt or material == Enum.Material.Slate or material == Enum.Material.Concrete 
		or material == Enum.Material.Basalt or material == Enum.Material.Brick or material == Enum.Material.Cobblestone or material == Enum.Material.Rock
		or material == Enum.Material.Sandstone or material == Enum.Material.Concrete or material == Enum.Material.Pavement or material == Enum.Material.Limestone
		or material == Enum.Material.Wood or material == Enum.Material.Salt) then
		if v.stress > 0.6 then
			v.wheel.SQ.Volume = (v.stress-0.1)*3
			v.wheel.SQ.PlaybackSpeed = v.stress+0.15
			v.wheel.Smoke.Rate = v.stress*5
		else
			v.wheel.SQ.Volume = v.stress-0.1
			v.wheel.SQ.PlaybackSpeed = v.stress+0.15
			v.wheel.Smoke.Rate = 0
		end
		v.wheel.Dirt.Rate = 0
		v.wheel.Sand.Rate = 0
		v.wheel.Snow.Rate = 0
		v.wheel.GravelEmitter.Rate = 0
	elseif (material == Enum.Material.Marble or material == Enum.Material.Plastic or material == Enum.Material.SmoothPlastic
		 or material == Enum.Material.Metal or material == Enum.Material.DiamondPlate or material == Enum.Material.CorrodedMetal) then
		if v.stress > 0.6 then
			v.wheel.SQ.Volume = (v.stress-0.1)*3
			v.wheel.SQ.PlaybackSpeed = v.stress+0.15
			v.wheel.Smoke.Rate = 0
		else
			v.wheel.SQ.Volume = v.stress-0.1
			v.wheel.SQ.PlaybackSpeed = v.stress+0.15
			v.wheel.Smoke.Rate = 0
		end
		v.wheel.Dirt.Rate = 0
		v.wheel.Sand.Rate = 0
		v.wheel.Snow.Rate = 0
		v.wheel.GravelEmitter.Rate = 0
	elseif (material == Enum.Material.Grass or material == Enum.Material.LeafyGrass) then
		v.wheel.Dirt.Rate = (v.stress*10)
		v.wheel.SQ.Volume = 0
		v.wheel.SQ.PlaybackSpeed = 0
		v.wheel.Smoke.Rate = 0
		v.wheel.Sand.Rate = 0
		v.wheel.Snow.Rate = 0
		v.wheel.GravelEmitter.Rate = 0
		local fixmultiply = 1
		if car.DriveSeat.Velocity.Magnitude <= 0.9 then
			fixmultiply = 0
		end
		local pitch = ((v.stress*2) + (car.DriveSeat.Velocity.Magnitude/80))+(0.5*fixmultiply)
		if pitch > 2.1 then
			pitch = 2.1
		end
		car.DriveSeat.Gravel.PlaybackSpeed = pitch
		car.DriveSeat.Gravel.Volume = pitch*8
		car.DriveSeat.Gravel.PitchShiftSoundEffect.Octave = 1-(pitch/4)
	elseif (material == Enum.Material.Ground or material == Enum.Material.Mud) then
		if car.DriveSeat.Velocity.Magnitude >= 30 then
			v.wheel.Dirt.Rate = (v.stress*10) + (car.DriveSeat.Velocity.Magnitude/10)
		else
			v.wheel.Dirt.Rate = (v.stress*10)
		end
		v.wheel.SQ.Volume = 0
		v.wheel.SQ.PlaybackSpeed = 0
		v.wheel.Smoke.Rate = 0
		v.wheel.Sand.Rate = 0
		v.wheel.Snow.Rate = 0
		v.wheel.GravelEmitter.Rate = 0
		local fixmultiply = 1
		if car.DriveSeat.Velocity.Magnitude <= 0.9 then
			fixmultiply = 0
		end
		local pitch = ((v.stress*2) + (car.DriveSeat.Velocity.Magnitude/80))+(0.5*fixmultiply)
		if pitch > 2.1 then
			pitch = 2.1
		end
		car.DriveSeat.Gravel.PlaybackSpeed = pitch
		car.DriveSeat.Gravel.Volume = pitch*8
		car.DriveSeat.Gravel.PitchShiftSoundEffect.Octave = 1-(pitch/4)
	elseif material == Enum.Material.Sand then
		if car.DriveSeat.Velocity.Magnitude >= 30 then
			v.wheel.Sand.Rate = (v.stress*10) + (car.DriveSeat.Velocity.Magnitude/10)
		else
			v.wheel.Sand.Rate = (v.stress*10)
		end
		if objn ~= 'Terrain' then
			v.wheel.Sand.Color = ColorSequence.new(color)
		else
			v.wheel.Sand.Color = ColorSequence.new(Color3.fromRGB(143, 126, 95))
		end
		v.wheel.SQ.Volume = 0
		v.wheel.SQ.PlaybackSpeed = 0
		v.wheel.Smoke.Rate = 0
		v.wheel.Dirt.Rate = 0
		v.wheel.Snow.Rate = 0
		v.wheel.GravelEmitter.Rate = 0
		local fixmultiply = 1
		if car.DriveSeat.Velocity.Magnitude <= 0.9 then
			fixmultiply = 0
		end
		local pitch = ((v.stress*2) + (car.DriveSeat.Velocity.Magnitude/80))+(0.5*fixmultiply)
		if pitch > 2.1 then
			pitch = 2.1
		end
		if ( (color.r>=color.g and color.r-color.b < 0.11) or (color.g>=color.r and color.g-color.b < 0.11) ) and objn ~= 'Terrain' then
			car.DriveSeat.SnowSound.PlaybackSpeed = pitch
			car.DriveSeat.SnowSound.Volume = pitch*20
			car.DriveSeat.SnowSound.PitchShiftSoundEffect.Octave = 1-(pitch/4)
		else
			car.DriveSeat.Gravel.PlaybackSpeed = pitch
			car.DriveSeat.Gravel.Volume = pitch*8
			car.DriveSeat.Gravel.PitchShiftSoundEffect.Octave = 1-(pitch/4)
		end
	elseif material == Enum.Material.Snow then
		if car.DriveSeat.Velocity.Magnitude >= 30 then
			v.wheel.Snow.Rate = (v.stress*10) + (car.DriveSeat.Velocity.Magnitude/10)
		else
			v.wheel.Snow.Rate = (v.stress*10)
		end
		v.wheel.SQ.Volume = 0
		v.wheel.SQ.PlaybackSpeed = 0
		v.wheel.Smoke.Rate = 0
		v.wheel.Dirt.Rate = 0
		v.wheel.Sand.Rate = 0
		v.wheel.GravelEmitter.Rate = 0
		local fixmultiply = 1
		if car.DriveSeat.Velocity.Magnitude <= 0.9 then
			fixmultiply = 0
		end
		local pitch = ((v.stress*2) + (car.DriveSeat.Velocity.Magnitude/80))+(0.5*fixmultiply)
		if pitch > 2.1 then
			pitch = 2.1
		end
		car.DriveSeat.SnowSound.PlaybackSpeed = pitch
		car.DriveSeat.SnowSound.Volume = pitch*20
		car.DriveSeat.SnowSound.PitchShiftSoundEffect.Octave = 1-(pitch/4)
	elseif (material == Enum.Material.Pebble) then
		if car.DriveSeat.Velocity.Magnitude >= 30 then
			v.wheel.GravelEmitter.Rate = (v.stress*10) + (car.DriveSeat.Velocity.Magnitude/10)
		else
			v.wheel.GravelEmitter.Rate = (v.stress*10)
		end
		v.wheel.GravelEmitter.Color = ColorSequence.new(color)
		local fixmultiply = 1
		if car.DriveSeat.Velocity.Magnitude <= 0.9 then
			fixmultiply = 0
		end
		local pitch = ((v.stress*2) + (car.DriveSeat.Velocity.Magnitude/80))+(0.5*fixmultiply)
		if pitch > 2.1 then
			pitch = 2.1
		end
		car.DriveSeat.Gravel.PlaybackSpeed = pitch
		car.DriveSeat.Gravel.Volume = pitch*8
		car.DriveSeat.Gravel.PitchShiftSoundEffect.Octave = 1-(pitch/4)
		v.wheel.Dirt.Rate = 0
		v.wheel.Sand.Rate = 0
		v.wheel.Snow.Rate = 0
		v.wheel.SQ.Volume = 0
		v.wheel.SQ.PlaybackSpeed = 0
		v.wheel.Smoke.Rate = 0
	else
		v.wheel.Dirt.Rate = 0
		v.wheel.GravelEmitter.Rate = 0
		v.wheel.Sand.Rate = 0
		v.wheel.SQ.Volume = 0
		v.wheel.SQ.PlaybackSpeed = 0
		v.wheel.Smoke.Rate = 0
		v.wheel.Snow.Rate = 0
	end
end

while wait() do
	GravelSound = false
	SnowSound = false
	for i,v in pairs(Wheels) do
		--Vars
		local speed = car.DriveSeat.Velocity.Magnitude
		local wheel = v.wheel.RotVelocity.Magnitude
		local z = 0		
		local deg = 0.000126
		
		--Tire Wear
		local cspeed = (speed/1.298)*(2.6/v.wheel.Size.Y) 
		local wdif = math.abs(wheel-cspeed)
		if _WHEELTUNE.TireWearOn then
			if speed < 4 then
				--Wear Regen
				v.Heat = math.min(v.Heat + _WHEELTUNE.RegenSpeed/10000,v.BaseHeat)
			else
				--Tire Wear
				if wdif > 1 then
					v.Heat = v.Heat - wdif*deg*v.WearSpeed/28
				elseif v.Heat >= v.BaseHeat then
					v.Heat = v.BaseHeat
				end
			end
		end
		
		--Apply Friction
		if v.wheel.Name == "FL" or v.wheel.Name == "FR" or v.wheel.Name == "F" then
			z = _WHEELTUNE.FMinFriction+v.Heat
			deg = ((deg - 0.0001188*cValues.Brake.Value)*(1-math.abs(cValues.SteerC.Value))) + 0.00000126*math.abs(cValues.SteerC.Value)
		else
			z = _WHEELTUNE.RMinFriction+v.Heat
		end
		
		--Tire Slip
		if math.ceil((wheel/0.774/speed)*100) < 8 then
			--Lock Slip
			v.wheel.CustomPhysicalProperties = PhysicalProperties.new(v.x,z*_WHEELTUNE.WheelLockRatio,v.elast,v.fWeight,v.eWeight)
			v.Heat = math.max(v.Heat,0)
		elseif (_Tune.TCSEnabled and cValues.TCS.Value == false and math.ceil((wheel/0.774/speed)*100) > 80) then
			--TCS Off
			v.wheel.CustomPhysicalProperties = PhysicalProperties.new(v.x,z*_WHEELTUNE.TCSOffRatio,v.elast,v.fWeight,v.eWeight)
			v.Heat = math.max(v.Heat,0)
		elseif math.ceil((wheel/0.774/speed)*100) > 130 then
			--Wheelspin
			v.wheel.CustomPhysicalProperties = PhysicalProperties.new(v.x,z*_WHEELTUNE.WheelspinRatio,v.elast,v.fWeight,v.eWeight)		
			v.Heat = math.max(v.Heat,0)
		else
			--No Slip
			v.wheel.CustomPhysicalProperties = PhysicalProperties.new(v.x,z,v.elast,v.fWeight,v.eWeight)
			v.Heat = math.min(v.Heat,v.BaseHeat)
		end 
		
		--Update UI
		local vstress = math.abs(((((wdif+cspeed)/0.774)*0.774)-cspeed)/15)
		if vstress > 0.05 and vstress > v.stress then 
			v.stress = math.min(v.stress + 0.03,1)
		else
			v.stress = math.max(v.stress - 0.03,vstress)	
		end
		local UI = script.Parent.Tires[v.wheel.Name]
		UI.First.Second.Image.ImageColor3 = Color3.new(math.min((v.stress*2),1), 1-v.stress, 0)
		UI.First.Position = UDim2.new(0,0,1-v.Heat/v.BaseHeat,0)
		UI.First.Second.Position = UDim2.new(0,0,v.Heat/v.BaseHeat,0)
		
		local detectionRay = Ray.new(v.wheel.Position + Vector3.new(0, 5, 0), Vector3.new(0,-5,0)*Distance)
		local objecthit, hitposition, surface, material = workspace:FindPartOnRay(detectionRay, car, false, true)
		if not material then
			material = Enum.Material.Air
		end
		if (material == Enum.Material.Pebble or material == Enum.Material.Mud or material == Enum.Material.Ground or (material == Enum.Material.Sand and ((objecthit.Color.r>=objecthit.Color.g and objecthit.Color.r-objecthit.Color.b >= 0.11) or (objecthit.Color.g>=objecthit.Color.r and objecthit.Color.g-objecthit.Color.b >= 0.11) or objecthit.Name == 'Terrain') )
			or material == Enum.Material.Grass or material == Enum.Material.LeafyGrass) then
			GravelSound = true
		end
		if (material == Enum.Material.Snow) or (material == Enum.Material.Sand and (((objecthit.Color.r>=objecthit.Color.g and objecthit.Color.r-objecthit.Color.b < 0.11) or (objecthit.Color.g>=objecthit.Color.r and objecthit.Color.g-objecthit.Color.b < 0.11)) and objecthit.Name ~= 'Terrain' ) ) then
			SnowSound = true
		end
		if not objecthit then
			LocalUpdate(v, material, BrickColor.Black())
			car.TireStress:FireServer(v, material, BrickColor.Black())
		else
			LocalUpdate(v, material, objecthit.Color,objecthit.Name)
			car.TireStress:FireServer(v, material, objecthit.Color,objecthit.Name)
		end
	end
	if GravelSound == false then
		car.TireStress:FireServer('StopGravel')
		LocalUpdate('StopGravel')
	end
	if SnowSound == false then
		car.TireStress:FireServer('StopSnow')
		LocalUpdate('StopSnow')
	end
end
