Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I make a smoothly changing text label?

Asked by
2Loos 168
4 years ago

First of all, the script I wrote doesn't even work, does anyone have a fix for this?

wait(1)
local textcolor = script.Parent.TextColor3
while true do
    textcolor = Color3.new(1, 0, 0)
    wait(1)
    textcolor = Color3.new(1, 0.470588, 0.0941176)
    wait(1)
    textcolor = Color3.new(1, 1, 0)
    wait(1)
    textcolor = Color3.new(0, 0.666667, 0)
    wait(1)
    textcolor = Color3.new(0, 0.666667, 1)
    wait(1)
    textcolor = Color3.new(0.333333, 0, 1)
    wait(1)
    textcolor = Color3.new(0, 0, 1)
    wait(1)
end

Next, how do I make it do this smoothly? I don't know how to use "Tweenservice." Please help!

1 answer

Log in to vote
2
Answered by 4 years ago

This made me cackle! It does work, man. The problem here is that you forgot that Color3s RGB value can range from 0,0,0 to 255,255,255. It changes color, but it's just too dark for you to notice!

For example, a really green color can be defined as 0,255,0. Red as 255,0,0 and blue as 0,0,255. 0,0,0 is the darkest possible, and 255,255,255 is the brightest.

And for your problems with TweenService, take this!!!

0
Aw, I'm stupid!!! Thank you LOL!! 2Loos 168 — 4y
Ad

Answer this question