Tutorials are not free code, they’re there to teach you things. If you have a tutorial that’s showing you an angle in reference to a mouse position, how is it not teaching you to calculate the angle? Surely it doesn’t matter what a specific position is being set by be it the mouse, a field in a script, some Transform position or anything else!
FYI: I’ll remove the 2D physics tag and this is nothing to do with physics.