Ok so, i basically want to rotate a part using position instead of cframe. Simple, right? I need to use Vector3 because im trying to make the said part rotate around its pivot, but using cframes just completely ignores the pivot i set.
I know how to rotate it using cframes, but is it possible with position?
ahh, thats what i was looking for. (part.Orientation). I was being dumb and i was typing part.Position.Orientation. Anyways, im gonna check if it solves my problem.
local pivotModel = script.Parent.Parent
local object = pivotModel.Object -- Blue Block
local pivot = pivotModel.Pivot -- Red Block
local rotation = 0
while wait() do
object:PivotTo(pivot.CFrame * CFrame.Angles(0, math.rad(rotation), 0))
rotation+=1
end
The light blue part is probably rotated on its side, and the PivotOffset is probably set to (0, 0, 0). I don’t know of anything else that could cause that problem