Can't rotate a model using SetPrimaryPartCFrame

Hi, I’m making a building system, but I can’t rotate a model using SetPrimaryPartCFrame, here is the code that I am using:

 UserInputService.InputBegan:Connect(function(input, gpe)
    if gpe then
        return
    else
        if input.UserInputType == Enum.UserInputType.MouseButton1 then
            if goodToPlace == true then
                Place:InvokeServer(new.PrimaryPart.Position, new.Name)
                runConnection:Disconnect();
                IsPlacing = false;
                goodToPlace = nil;
                new:Destroy()
            end
        elseif input.KeyCode == Enum.KeyCode.R then
            warn("Rotating");

            local newCFrame = new:GetPrimaryPartCFrame() * CFrame.Angles(0, math.rad(-90), 0);

            new:SetPrimaryPartCFrame(newCFrame)
        end
    end
end)

Help is appreciated!

Does your model have a primary part set? Might wanna double check that it isn’t locked, and it is in fact set. Make sure everything is defined as well.

Yeah, everything is defined well, no errors, nothing like that. It is all working fine except the rotation.

Since you’re using CFraming, are all the Parts of the model Anchored?