Trying to tween a UIGradient

I’m trying to make an intro screen for my game and I want text to fade in. I want to make a cool effect where instead of the text just popping up it horizontally fades in. I wanted to achieve this by putting UIGradients with negative offsets to the TextLabels and then tweening them to have a positive offset.

I tried this, however it keeps printing “Unable to cast to Dictionary

This is what I have tried:

local goal = {Offset = Vector2.new(1, 0)}
TweenService:Create(TextA.UIGradient, TweenInfo.new(0.6), {goal}):Play()

How can I fix this?

You put some extra curly braces.
This should do it:

TweenService:Create(TextA.UIGradient, TweenInfo.new(0.6), goal):Play()

Can’t believe I didn’t notice, thank you