I’ve looked over devforums and other media sites but couldn’t find a good answer.
So I want to create a tracking move by using parts, but I’m not sure how to do the tracking part. Not too sure how what method to use. So how would I go about making a part track a humanoid/player and what method is the best?
Get the closest part with a magnitude function then then set the ball to the position. I similar system in my football game in my AI zone coverage Script. Just use move to function and move to the humanoids root part. Position.
Oh, you can use Raycasting for this, to prevent it goes trough objects, I do not exactly know the answer, but maybe you can use Pathfinding service?
I don’t know if it works with other objects, correct me im im wrong, and using some tweenservice and raycasting you can make it moves smoothly to all the waypoints until it hits a player!
You can just loop a ray to detect if it hits an object or a humanoid body part.
I don’t know if pathfinding service works for parts
You can use :DistanceFromCharacter() to get the nearest player by looping the Player service and use the run service to keep getting the nearest player.