Hello! I am currently working on a piece of code that tweens multiple objects one after the other, the code works perfectly. But the frame with the objects does have a UIPageLayout so the objects don’t actually show they are tweening, and just stay in place. Is there anything I can do to make the objects actually tween?
Btw here is the code, its pretty simple.
for _, Item in pairs(ItemContainer:GetChildren()) do
if Item:IsA("ImageButton") then
Item.Position = UDim2.new(
Item.Position.X.Offset, Item.Position.X.Scale,
Item.Position.Y.Offset + 1, Item.Position.Y.Scale)
Item:TweenPosition(
UDim2.new(
Item.Position.X.Offset, Item.Position.X.Scale,
Item.Position.Y.Offset - 1, Item.Position.Y.Scale),
Enum.EasingDirection.Out,
Enum.EasingStyle.Back,
.3)
task.wait(.15)
end
end
Okay, Thanks! I am still going to try to get that effect, my theory is if I duplicate the frame with the objects, delete the UIPageLayout and adjust the objects accordingly it should give me the effect Im going for? But again, thanks!
If you delete the cloned frame’s ‘UIPageLayout’ instance it’ll remove the constraints on its sibling instances, what you could do is tween the UIPageLayout's properties itself.