Placement System Problem

So I Recently made a placement system which works fine but the orientation is screwed up and i have no clue how to fix it so that’s why I came here.

image
(I drew the green part to show how I want it to be)

This is the only part of the code you guys need to see im pretty sure
(yOrientaiton is for Rotating purposes (doesn’t affect current problem)

local RotationCFrame = CFrame.Angles(0,math.rad(yOrientation),0)
local FinalCFrame = CFrame.new(pos.X,pos.Y,pos.Z)
Placement:SetPrimaryPartCFrame(FinalCFrame*RotationCFrame)

Nevermind, I was able to fix it using Cross Product