Trying to make an animated gradient by changing the rotation, but it isn't working. Anyone know whats wrong?
while true do
script.Parent.Rotation = script.Parent.Rotation + Vector2.new(1,0)
print("work")
wait(0.2)
end
Trying to make an animated gradient by changing the rotation, but it isn't working. Anyone know whats wrong?
while true do
script.Parent.Rotation = script.Parent.Rotation + Vector2.new(1,0)
print("work")
wait(0.2)
end
You don't actually have to use a Vector2/UDim2 to rotate the value.
while true do
script.Parent.Rotation = script.Parent.Rotation + 1
print("work")
wait(0.2)
end
Just numbers.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
I believe the UI Gradient's Rotation Property takes a float (number) value, not a Vector2.