Y cannot be assigned to. (orientation)

I get a error when i want to spin a part by accesing the Y axis value in the parts Orientation.
But i get error: ‘Y cannot be assigned to’
here is my code.

local part = script.Parent

while wait(0.01) do
	part.Orientation.Y = part.Orientation.Y + 1

end

local part = script.Parent

while wait(0.01) do
	part.Orientation += Vector3.new(0, 1, 0)

end

You can do this

The Y value of a vector3 is readable only, to change you will have to change the hole vector3 by doing like @AmazingPlayer765

Like Aqua said,

Data types like Vector3 and UDim2 properties are only able to be changed with the corresponding .new() function.
Because the values of those data types are read-only, they can still be used to check values, e.g.;

if part1.Orientation.Y < part2.Orientation.Y then
	print("part1 is below part2.")
end

You can change values like that, he is an example of what you could do

part.CFrame = part.CFrame * CFrame.Angles(0, math.rad(1), 0)