Problems with getting the Y position of my frame (gui)

i want to tween something and i need to get the Y position of my frame but it gives this error in the output:

local g = {Position = {Position = UDim2.new(0,0,frame.Position.Y.Scale,0)}}

pls help me with this issue

2 Likes

You are tweening a gui or a part?

I’m assuming it’s because your code should be like this:

local g = {Position = UDim2.new(0,0,frame.Position.Y.Scale,0)}

You had an extra table inside there.

3 Likes

am tweening a gui and not a part

ah thats the solution thank you!