i am making a game with a model which has to be rotated a certain direction depending on a certain value, but the problem is all scripts that I found add rotation to the frame, here is my script for you to understand more
if Direction == "East" then
Parent:SetPrimaryPartCFrame(Parent.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(90), 0))
end
in summary, I need to set the rotation to 0,90,0, not add 0,90,0

4 comments
this only rotates the primary part, i want to rotate the entire model with the primary part as the centre of mass
Unanchor all the parts in the model and then weld them all to the primary part.
that didnt work
I would give prooheckcp's solution a try.