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?
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.