WheelModel=script.Parent:WaitForChild("\087\104\101\101\108\115")rainEffect=script:WaitForChild("\082\097\105\110\069\102\102\101\099\116")wheels={}touchingparts={}for S,z in pairs(WheelModel:GetChildren())do if z:IsA("\066\097\115\101\080\097\114\116")then table.insert(wheels,z);(rainEffect:Clone()).Parent=z table.insert(touchingparts,nil)end end for S,z in pairs(wheels)do z.Touched:connect(function(z)touchingparts[S]=z end)end RunService=game:GetService("\082\117\110\083\101\114\118\105\099\101")RunService.Heartbeat:connect(function()for S,z in pairs(wheels)do local J=z.Velocity.magnitude if J>20 then if touchingparts[S].Material==Enum.Material.Glass or touchingparts[S].Material==Enum.Material.Ice then z.RainEffect.Rate=(.05*J)*10 else z.RainEffect.Rate=0 end else z.RainEffect.Rate=0 end end end)
-- please do not distribute this plugin and pass it as yours

WheelModel = script.Parent:WaitForChild("Wheels")
rainEffect = script:WaitForChild("RainEffect")
wheels = {}
touchingparts = {}

for i, v in pairs(WheelModel:GetChildren()) do
	if v:IsA("BasePart") then
		table.insert(wheels, v)
		rainEffect:Clone().Parent = v
		table.insert(touchingparts, nil)
	end
end
for i, v in pairs(wheels) do
	v.Touched:connect(function(part)
		touchingparts[i] = part
	end)
end
RunService = game:GetService("RunService")

RunService.Heartbeat:connect(function()
	for i, v in pairs(wheels) do
		local speed = v.Velocity.magnitude
		if speed > 20 then
			if touchingparts[i].Material == Enum.Material.Glass or touchingparts[i].Material == Enum.Material.Ice then
				v.RainEffect.Rate = 5 / 100 * speed * 10
			else
				v.RainEffect.Rate = 0
			end
		else
			v.RainEffect.Rate = 0
		end
	end
end)
