Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to tween a Gui if it is part of a UIListLayout?[SOVLED]

I have text buttons and they are inside a frame with a UIListLayout so there positions are overridden. But what I am to do is tween and arrow gui to the buttons position but It just tweens to 0,0, So how would i get the position of it when its part of a UIListLayout

Heres the code

for i,v in pairs(MainGui:GetDescendants()) do
	if v:IsA("TextButton") then
		v.MouseEnter:Connect(function()
			MainFrame.Arrow:TweenPosition(UDim2.new(v.Position + UDim2.new(0, 15, 0, 0)))
		end)	
	end
end

Again the buttons are being sorted in a UIListLayout

Thank you for your time hopefully we can fix this :)

1 comment

0

you spelled Solved wrong.

1 answer

for i,v in pairs(MainGui:GetDescendants()) do
    if v:IsA("TextButton") then
        v.MouseEnter:Connect(function()
            MainFrame.Arrow:TweenPosition(UDim2.new(v.Position + UDim2.new(0, 15, 0, 0)))
        end)    
    end
end

This might not work, but I tried my best xd.

lol

4 comments

0

Oh right

0

I forgot the word .new

0

I have a new problem now XD It just goes to 0,0

0

idk then

This discussion is preserved as it was. New answers, comments, and votes are closed.