mouse.Button1Down:Connect(function()
local HarvestTime = target.WheatConfig.HarvestTime.Value
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=2194604752"
local animTrack = Character.Humanoid:LoadAnimation(animation)
Character.Humanoid.WalkSpeed = 0
animTrack:Play()
Player.PlayerGui.HarvestUI.UI.Bar:TweenSize(UDim2.new (0, 290, 0 ,41), "Out", "Quad", HarvestTime, true)
end
I would like to check when my GUI is finished tweening, and when it is a certain size, say 0, 290, 0, 41. It would run the code I have written down, while if it doesn't finish tweening and never reaches 0, 290, 0, 41 in size It won't run anything. I am quite unsure as to how to do this.

3 comments
You add in the time it takes until it finishes tweening in the tweening method. I see you use "HarvestTime". Just use wait(HarvestTime) and then run the code.
Lel, incapaz know better
The callback will run if the tween finishes or is canceled which is why the state is passed as an argument.