Part created inside localscript wont rotate

--localscript
function rotate(degrees)
	wedge:SetPrimaryPartCFrame(CFrame.new(wedge.PrimaryPart.Position) * CFrame.Angles(math.rad(degrees),0,0))
end

the part was created inside of the localscript the server cant see it
gif

Could you elaborate more on what you are trying to achieve?

rotating the part
:pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza::pizza:

1 Like

In what direction do you want to rotate the part? Because I see you rotate it in a X-Axis or Z-Axis.