In this frist code above you can see i’m setting the angles to 0,90,0 → X,Y,Z respectively and its working. But NOW when i try to set 5º to X using this code:
Try switching the order of the Pitch and Yaw rotations like this:
CFrame.Angles(math.rad(90), 0, math.rad(-5))
This will first rotate around the Y-axis by 90 degrees, and then around the Z-axis by -5 degrees. Make sure to adjust other parts of your code accordingly if the order change affects the overall behavior.
You should make an invisible part with the CFrame listed above, so you can simply pivot the model to the part like this:
local item = game.Players.Hayden_Almeida.PlayerGui.MainScreen.TelaFull.CharacterScreen.PlayerModel.Frame.ViewportFrame.Char["Origin Cap"]
local position = workspace.ItemPosition -- the cframe as an invisible part (position and rotation)
item:PivotTo(position.CFrame)