Here is what I did
Template:SetPrimaryPartCFrame(CFrame.new(Vector3.new(X_Pos, Y_Pos, Z_Pos + Size)))
Did not work either:
Template:SetPrimaryPartCFrame(CFrame.new(X_Pos, Y_Pos, Z_Pos + Size))
The template whose CFrame is changed no longer has its orientation when the primarypart CFrame is changed
How to fix this?

2 comments
u dont use the CFrame.new() constructor
set the cframe instead