Whenever the player clicks, portals spawns in a wall like pattern behind them
The only problem being that the walls only spawn correctly when the player is facing a certain direction
VVV when the player faces the right direction VVV
VVV when the player faces the wrong direction VVV
How do I get the portals to appear just like in the first picture no matter what direction the player is facing
the current code
NewGate:SetPrimaryPartCFrame((Character.HumanoidRootPart.CFrame + Vector3.new(math.random(-10, 10), math.random(4, 8),0)))