Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

TextBox's TextColor3 isn't tweening?

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:

local tService = game:GetService("TweenService")
local tInfo = TweenInfo.new(1)
local textBox = script.Parent.TextBox

while wait(1) do
	
	local tGoals = {TextColor3 = Color3.new(math.random(0, 255), math.random(0, 255), math.random(0, 255))}
	local tween = tService:Create(textBox, tInfo, tGoals)
	
	tween:Play()
	print(tGoals["TextColor3"])
	
end

Any help?

1 answer

✓ Accepted answer

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.

1 comment

0

i was about to say same thing

This discussion is preserved as it was. New answers, comments, and votes are closed.