You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to move clones of a gui down each time a new clone comes.
What is the issue? Include screenshots / videos if possible!
I don’t have any method to get it to work, I need the position of the previous clone somehow.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have looked around a lot but can’t find any issue similiar to mine.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
I don’t really have much code to show since I haven’t found any method yet.
I hope you understand the issue anyways.
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
Have you written any code for this at all? If so, you should post it with your question.
How I’d do this is keep track of all of the “clones” in a Table, and update the Positions based on their index. e.g:
local clones = {}
function receiveClone(clone)
table.insert(clones, 1, clone)
for i, v in pairs(clones) do
v.Position = UDim2.new(0,0,0,200*(i-1))
end
end
I am unsure of what you are asking as you don’t have any code that you have provided, so I will give you what I assume you are asking for.
local original = -- Reference the original part here
local clone = original:Clone() -- Clones the part
local cloneposition = clone.Position -- Gets the position of the clone as a variable
I am unsure of what you mean by “What I did before” as you haven’t provided any images and / or code with information on what you have already tried. If you could give some sort of explanation on what you did before it would be much appreciated as we will be able to resolve this issue you have.