Let pet fly to an part, without colliding through walls

Hi! I’m currently making a kinda pet system. The pet needs to fly to a part, but should not collide with anything. I just tried with humanoid:moveTo() and just with cFrame, but then it just flies to the part, without thinking of going besides a wall.
I also tried using pathfinding, but then the pet can’t fly.

Does anyone know in what way I can achieve this?

Thank you alot!

1 Like

Try using pathfinding + setting the pets CFrame to be above the ground.

1 Like

I’m guessing that those walls should be collidable under normal circumstances? If so use collision groups, learn more here:

Thank you! Will try that out right now. For now your answer is the solution. Thank you!

Well, I already now collision groups, but the just need to go around the wall and not go through them :slight_smile: , but thanks for your (helpfull) anwer.
2021-11-09T20:25:00Z

Your title probably needs to be fixed, I thought you wanted pets that didn’t collide into walls (could move through walls).

Ah yeah, my fault :slight_smile:, but no problem!