So I had a bunch of cylinders that I've putt in a model. That model was rotated to 90 on Z. So I made a primary part and used CFrame to make the whole model go down.
local upcframe = CFrame.new(x, y, z)*CFrame.Angles(0, 0, 90) local downcframe = CFrame.new(x, y, z)*CFrame.Angles(0, 0, 90) local model = game.Workspace.Model local center = model.randompartfromthemodel model.PrimaryPart = center while true do wait(2) model:SetPrimaryPartCFrame(downcframe) wait(2) model:SetPrimaryPartCFrame(upcframe) end
But now when it goes down it change the angles. Could it be because I have a part (that is not included in model) below the model? if not, then what can I do to fix it?
I finaly found the answer. Because of the buggy angles, I used a brick as the primary part of the model because bricks spawn ,,normalyā€¯ so you dont have to rotate them. It took me long enough to figure it out, sometimes I simply dont think about all the ways I can do a job.
Now how do I close this question???