Need help with pathfinding

Hey everyone!
I’ve been looking it up on the DevForum, YouTube, Roblox Docs but I can’t find what I’m looking for. Basically I made a beam that connects to the humanoid’s torso then reaches a part with arrows. Basically I want it to go around other object such as buildings, trees, etc.
Here’s the video of my current progress.

Basically I didn’t find any tutorial, so what I’m looking for is basically that, any tutorial to change a beam’s direction?
Thanks!

You cannot change a beam’s direction unless you are referring to the curve angle? You should probably make multiple beams instead.

That’s interesting, but how would I make it automatically detect things and then making it change direction by basically as you said make a new one?

Use either pathfinding or a * algorithm