View distance script