Help with gui tweening

I don’t know how to word this topic, but basically I’m trying to tween the children of a frame, ‘x’ amount higher. It’s working but the problem is all the children get tweened to a specific position. I want each child to tween higher, instead of all going to a position.

local frame = script.Parent.Frame.RiseFrame
local Rise = script.Parent.Frame.Rise

Rise.MouseButton1Click:Connect(function()
	for i,v in pairs(frame:GetChildren())do
		v:TweenPosition(UDim2.new(0,100,0,10),Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 2, false)
	end
end)

Any help would be appreciated, thanks.

Nevermind, I’m actually so dumb. Fix:

Rise.MouseButton1Click:Connect(function()
	for i,v in pairs(frame:GetChildren())do
		v:TweenPosition(v.Position + UDim2.new(0,0,-0.5,0),Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 2, false)
	end
end)
1 Like