local Ray = Ray.new(Vector3.new(-238.35, -4.8, 69.5),Vector3.new(-385.35, -4.8, 69.5))
end

local numberofcars = {}

while true do
	wait(0.5)
	checkforcars()
	local car = game.Workspace:FindPartOnRayWithWhitelist(Ray,game.Workspace:FindFirstChild("Beak"):FindFirstChild("Engine"))
	if car then
		numberofcars = table.insert(car + car) 
	end
	end````

Can you see what i'm trying to do??

Cars are passing a certain road and i want to raycast so that every 0.5 seconds it updates the table called numberofcars...

This is the greatest obstacle in my traffic simulator. Also raycasting tutorials don't really help because they all are about guns...