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
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