Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trying to make an animated gradient, but the gradient wont work?

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

1 comment

0

I believe the UI Gradient's Rotation Property takes a float (number) value, not a Vector2.

1 answer

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.