As the title says, I’m trying to edit just one value of a Color3.
I’m trying to make my label smoothly change from red to orange to yellow and repeat
My idea was to set the Color3 of the label initially as (255, 0, 0), then change the G value from 0 to 255 and repeat it, to make it go through orange while tweeining to yellow.
To summarize:
I want tween to smoothly change a color3 of (255, 0, 0) to (255, 255, 0) and repeat
I’ll accept any ideas that approach this problem differently than mine.
Appreciate any help!
-- services
TS = game:GetService("TweenService")
-- variables
label = script.Parent
-- tween variables
object = label
info = TweenInfo.new(10, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, true, 0)
ptable = {TextColor3 = Color3.new(255, 255, 0)}
-- create tween
tween = TS:Create(object, info, ptable)
-- play tween on event fired
script.Parent.Parent.FinishedLoading.Event:Connect(function()
label.Visible = true
label:TweenPosition(UDim2.new(0.122, 0, 0.086, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Elastic, 0.4)
tween:Play()
end)