How would I clone an object mulitple times?

  1. What do you want to achieve? Keep it simple and clear!
    I’m trying to clone the same object multiple times

  2. What is the issue? Include screenshots / videos if possible!
    It doesn’t work and I don’t know why. There’s no errors once I playtest.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried “Object:Clone():Clone():Clone()” and “Object:Clone() Object:Clone() Object:Clone()”

My code:

if count == 5 then 
			Object.Position = Object2.Position
			Object.Parent = game.Workspace.Folder
			Object:Clone():Clone():Clone()
		

			Object2:Destroy()
end

Try using a loop.

while true do
task.wait(1)
Object:Clone()
end

Perform the loop as many times as you need by using a variable for true and increasing it by 1 every time the loop is done.

There are other ways to do this as well. Some are below:

loops - Roblox

What do you mean by increasing it by 1? How do I do this?

for count = 10, 1, -1 do
task.wait(1)

Object:Clone()

end

This will perform the clone 10 times. Since it is starting at 10, going to 1, and every time the loop is completed it subtracts 1. (That is what those three numbers mean in the top).

1 Like