Finding the corner of a part

So I have been trying to make a wall sneak ability for my game. I ran into this problem where I can not get the corner of the part.

I have tried a couple of different solutions on the developer forum but they are just sending me to the middle of nowhere. This is the code that I tried : local corner = GoTo.CFrame * CFrame.new(GoTo.Size.x/2, GoTo.Size.y/2, GoTo.Size.z/2)

Thanks for all the help that I receive!

That looks correct, so I assume your issue is elsewhere. How do you have it implemented?

I am make the players humanoid move to the corners position with the :MoveTo() Function

Can you try to add the cframes instead of multiplying?

You would need to multiply because every size is different for a part

local corner = GoTo.CFrame + CFrame.new(GoTo.Size.x/2, GoTo.Size.y/2, GoTo.Size.z/2)

Was the CFrame supposed to be multiplied?
I mean it looks like it will make you go to nowhere if you multiply.
I could be wrong.

If you multiply you will not get the center.

I meant to say divide not multiply sorry for my error