Help with functions

How would I make it so that enemy:Clone() would perform the same number of times as the ‘amount’ parameter

function send(enemy, amount)
		enemy:Clone().Parent = game.Workspace
end

function Wave1()
	send(Weak, 2)
end

sorry i couldn’t think of a good title

You’d simply run it through a for loop like so:

for i = 1, amount do 
   enemy:Clone().Parent = game.Workspace
end

If you have any questions feel free to ask!

1 Like