I’m trying to clone a model, and set the PrimaryPart position and Orientation.
The position is setting correctly, but the orientation is not. I’ve barely used CFrame.Angles, so I need help setting the correct values. I need the orientation to be facing up, not sideways.
Here is the code where the position and orientation are being set:
local Button = Buttons[currentWorld][currentButton]:Clone()
local IslandCFrame = island.Island.Top.CFrame
Button.Parent = island
Button:SetPrimaryPartCFrame(CFrame.new(IslandCFrame.X, 420.115, IslandCFrame.Z) * CFrame.Angles(90,0,0))
This is how it looks currently.