Ad
Log in to vote
0

Tweening Multiple things at once with there specific positions?

Asked by 2 months ago

So what I'm trying to do is, move multiple parts of this GUI, it consists of squares in lines going from the top of the screen to the bottom.

I want to rotate every square in a 70-degree angle (which isn't the issue)

The issue at hand:

  • how do I tween everything as is, for example, if I wanted to move all the squares to the left altogether. How would I do that?

What I have so far:

local BottomBG = script.Parent.BottomBG
local TopBG = script.Parent.TopBG
local FrameForText = script.Parent.FrameForText
local Holder = script.Parent.Holder


for i,v in pairs(Holder:GetDescendants()) do


    v:TweenPosition(UDim2.new(30, 0,30, 0),"Out","Quad",true,0.1)
    v.Rotation = v.Rotation+70
    print(v.Rotation)


end

Answer this question