It is kept the same Position but a different Orientation.
I just tested it and it worked for me, it didn’t change the Position but the Orientation:
Your way is possible too I think, but I use this way because it’s simpler for me to remember.
It is kept the same Position but a different Orientation.
I just tested it and it worked for me, it didn’t change the Position but the Orientation:
Ok let me send you all a video to show whats happening! Thanks for you all trying to help
I have a video showing what is happening
I can not really understand. Can you tell me in words what is supposed to happen and what is happening when you test?
So the object is a deck. The Model Primary Part is the large part on the top. It is being rotated to 0, 0, 0, making the part turn. I want to make sure that parts stay aligned in a grid according to where they are on the plot.
The object is being flipped to the side
I suggest you to recheck the code where it rotates it, I can not really see a problem.
Ok I’ll look. What I see the problem is that because when my modeler made the objects the part’s orientations are at whatever rotation he made to design it. I’m just trying to make the part have a orientation that aligns with the plot orientation but I still want the parts the be the same.
I’ll take a spin at it!
local function updateModelPlacement()
if Plot and (not Plot:IsDescendantOf(Object)) and Mouse.Target.Name == plotName then
Object:SetPrimaryPartCFrame(GetMousePlacementCFrame(Plot, Object)*CFrame.Angles(math.rad(90),0,0)))
end
end
Change the CFrame.Angles to whatever orientation/rotation you need for it to be right side up!
Example:
If you need it to be rotated 90° on the X axis it would be: CFrame.Angles(math.rad(90),0,0))
If you need it to be rotated 90° on the Y axis it would be: CFrame.Angles(0,math.rad(90),0))
If you need it to be rotated 90° on the Z axis it would be: CFrame.Angles(0,0,math.rad(90))
Please correct me if any of my information is inaccurate!
Here’s the thing. Certain models are not be rotating since their orientation is (0, 0, 0) but the parts that have a regular different orientation before being moved are then being rotated
Now I know this will sound weird but… does your model have to be a model? If their isn’t any animation aspect to that deck, I’d honestly just make that whole thing a mesh. Then you dont have to worry about some parts not cooperating!
However if you do need them to be separate, please explain more about the whole:
What do you mean by “regular-different” orientation compared to the other parts?
Sorry about the poor grammar… my bad… Anyway my script is using models but I could certainly do mesh.position but how would I convert into meshes?
Is the model full of parts? If so you can just simply select every part under the model and create a union under the model tab of studio!
You see even unions are flipped to the side… im not sure why though
Also unions change the textures and colors
Well, if its one singular part you can just change the orientation.
Yeah I’m aware. Split it into two different unions.
But if the two unions aren’t one part then how would the it be different from about ten or so parts
Just try the code I gave you a bit ago, with less parts to worry about the orientation might work.