Raycast Rotation

hello, i’m trying to create some damage effects just by adding slopes or something on the walls next to it, but i can’t figure out how to rotate the upper part when there’s a wall above it

this is the line of code that looks at the wall next to it, i’m using a raycast on an attachment

part.CFrame = CFrame.lookAt(part.position, part.position + raycastResult.Normal)