How to find angle and apply force in that angle

I’m making a magnet example, and I need to apply velocity towards that object. How do I do that?


2 ways that I can think of:

  1. Use “point at” and use “forward” to move to the object. You can hide this object and use an attach to keep the player upright.

  2. Use advabce Math to input x and y to move towards the object. Most likely you’ll use cos and sin.