I'm trying to script a color changing system so a text box can smoothly change its colors. Problem is, the textColor3 isn't changing, and there isn't an error in the output. I used this script:
01 | local tService = game:GetService( "TweenService" ) |
02 | local tInfo = TweenInfo.new( 1 ) |
03 | local textBox = script.Parent.TextBox |
04 |
05 | while wait( 1 ) do |
06 |
07 | local tGoals = { TextColor 3 = Color 3. new(math.random( 0 , 255 ), math.random( 0 , 255 ), math.random( 0 , 255 )) } |
08 | local tween = tService:Create(textBox, tInfo, tGoals) |
09 |
10 | tween:Play() |
11 | print (tGoals [ "TextColor3" ] ) |
12 |
13 | end |
Any help?
Color3.new() is different than Color3.fromRGB() because Color3.new(1,0,0) is the same thing as Color3.fromRGB(255,0,0). So try to swap to that and see what happens.