This is the script
local RotatedCFrame = (model.MainPart.Position) * math.rad(0, -90, 0)
model:SetPrimaryPartCFrame(RotatedCFrame)
This is the script
local RotatedCFrame = (model.MainPart.Position) * math.rad(0, -90, 0)
model:SetPrimaryPartCFrame(RotatedCFrame)
SetPrimaryPartCFrame uses CFrame and in this case, you are setting it to a Vector3 value. To fix this, you must change:
local RotatedCFrame = (model.MainPart.Position) * math.rad(0, -90, 0)
to a CFrame value like this:
local RotatedCFrame = (model.MainPart.CFrame) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0))
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
it stays at the same orientation
Never mind I figured out I only typed what you wrote