How should I go about making this?

I’m trying to make a system in which a bot object will go to what I call “waypoints”, and will go to the waypoint that is closest to the player. How will I go about making this?

1 Like

U can use magnitude to get the nearest part to the player.
To do this u need to loop trough the waypoint folder using for i,v in pairs() do

1 Like