https://i.gyazo.com/d654b4c3aa4d37f114cbd874e1f59645.mp4
As you can see here, when the button is pressed, the “WARPING” text slowly fills up.
However, you can see it’s a bit jumpy and glitchy when it goes back and fourth.
How do I fix this?
local grey = Color3.fromRGB(180,180,180)
local white = Color3.fromRGB(255,255,255)
script.Parent.Parent.TextLabel.UIGradient.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0, white),
ColorSequenceKeypoint.new(.01, grey),
ColorSequenceKeypoint.new(1, grey)
}
script.Parent.MouseButton1Down:Connect(function()
for i = 1,99 do
print(i/100)
script.Parent.Parent.TextLabel.UIGradient.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0, white),
ColorSequenceKeypoint.new(i/100, white),
ColorSequenceKeypoint.new((i/100)+0.0001, grey),
ColorSequenceKeypoint.new(1, grey)
}
wait()
end
end)