Are you using radians for the rotation?
local r1 = CFrame.Angles(90,0,0)
--is not the same as
local r2 = CFrame.Angles(math.rad(90),0,0)
--r2 results in a rotation of 90 degrees around the x axis, r1 results in 90 * 180/pi degrees around x axis
CFrame.Angles is Euler Angle rotation
Here are some videos explaining Euler Angles and radians
The second one is more trigonometry, but it has a good explanation of radians at the start.
Also can I please see what you are using as the rotation variable?
Well Orient = The orientation about what I would like to have the block (Which works fine)
Also I will try math.rad
Also how can I implement this? I am very new to these things… (Also tysm for all of these demonstrations!)
I made a new edit to the original place file I summited. I made the selection box show its face name and also added a simple rotation function.
e to rotate 90 degrees of x axis
r to rotate 90 degrees on y axis
t to rotate 90 degrees on z axis
to see the parts axis select the part with the move tool
MultiSizeBlockPlacement.rbxl (31.5 KB)
The rotation function works by multiplying the current rotation variable by a new CFrame.Angles with a rotation of math.rad(90) on the respective axis.
forgot to mention, the red line is x axis, blue is z and green is y
1 Like
Alright! This matches what I have for my rotating! Will check it out after finishing working for one of my clients