Clone not working multiple times

So, I am making a waiter ordering system. If you click a button, there will be an order besides it. If you click one of them more than twice, it won’t work anymore. This is my script -

script.Parent.MouseButton1Click:Connect(function()
	local clone = script.Parent.Parent.Parent.Parent.Order.ScrollingFrame.Item:Clone()
	clone.Name = "Clone"
	clone.Text = script.Parent.Text
	clone.Visible = true
	clone.Parent = script.Parent.Parent.Parent.Parent.Order.ScrollingFrame
end)

This is what it looks like

I don’t understand, what do you want it to do? Make a copy and move it down?
or change the text?

So if I click one of them it will clone a text label that changes the text. It won’t work if i click one of them more than two times. It should clone it again, but it’s not working.

I don’t see why it wouldn’t work, you can try to increase the Z index by 1 each time you get a new order.

Found the problem… I just realized I’m so dumb and forgot to put a UIListLayout…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.