Hello everyone, so I'm doing a thing with a GUI and I want to create a cool effect that moves a bunch of buttons inside a folder to the left each other, but the value always comes {0,0,0,0}
Here's the script:
for i,v in pairs (script.Parent.Parent:GetChildren()) do
local Position = UDim2.new(v.Position + UDim2.new(-0.7,0,0,0))--I tried with - and * and didn't work
v:TweenPosition(UDim2.new(Position),"Out","Quad",1)
print(Position)--Prints {0,0},{0,0}
print(v.Position) --+Prints high numbers such as {0.0599999987, 0}, {0.649999976, 0} for some reason, shouldn't even be posible.
wait(.3)
end
Huge thanks to whoever helps me!

4 comments
I might be wrong on this but I'm sure tweening happens asynchronously i.e. when you print v.Position the tweening has just started, so the output you're getting is close to where v is starting off at, not ending.
Even when I remove the tween line the same numbers appear.
Yeah, that's v's original coordinates. 0.06,0.65 are reasonable scale coordinates, so nothing there is really out of place. Do you see the gui's position visually change when you tween it?
Yes. They all move to the "Position" value, which is {0,0},{0,0}