I keep get the error "Can only tween objects in the workspace" when tween a frame using :TweenSize()

When I try to tween the size of a frame inside of a billboard Gui in player Gui addorneed to a part, I keep getting this same error: Can only tween objects in the workspace. But the tweening works fine with other things in player Gui.
My script:

PopupGui.InteractionFrame.InteractButton:TweenSize(
					UDim2.new(1.3, 0,1.3, 0),
					"Out",
					"Quad",
					.1,
					true
				)
1 Like

A Couple of things,

You should Instead be using TweenService as it gives you more functionality over your Tweens, For Example: Instead of a Tween Just Firing, you can Instead control what It does, if you want something to happen when it finishes you could with Tween.Completed

You should also be using UDim2.fromScale if you are only going to be using the Scale, It would be much faster if you did so as instead of 4 numbers, there are only 2 for this occassion due to it only changing Scale Properties:

UDim2.new(1.3, 0,1.3, 0)
UDim2.fromScale(1.3,1.3) -- The Exact same thing
3 Likes