Attempt to call a UDim2 value

Hi, i tried to put a Linear effect for tweenposition gui but somehow i got this error

attempt to call a UDim2 value 

example script:

script.Parent.Parent.Parent.Confirmation:TweenPosition(UDim2.new(0.285, 0,-1, 0) 'Out', 'Linear')

You forgot the comma after defining the position.

Look into TweenService, as TweenPosition is deprecated.

1 Like

You call UDim2 with ‘Out’. Time is needed for tweening.

script.Parent.Parent.Parent.Confirmation:TweenPosition(UDim2.new(0.285, 0,-1, 0), 'Out', 'Linear', time)