function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end

counter = 0

while wait(0.1)do
 script.Parent.TextColor3 = Color3.fromHSV(zigzag(counter),1,1)
 
 counter = counter + 0.01
end

7 comments

0

is it for a gui, or for a part?

0

you didnt call the function

0

you didnt call the function

0

gui

0

Are you also trying to change the background, or the text, because its set to the text color 3

0

im trying to do text

0

try putting adding the counter before setting the color 3 value