Help setting Model Orientation

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(, 420.115, IslandCFrame.Z) * CFrame.Angles(90,0,0))

This is how it looks currently.

CFrame.Angles uses radians, so using math.rad() should work.

1 Like

Thank you so much! :slight_smile:

text here

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.