Cloning happens exponentially

so i know this is a really stupid issue and im probably really dumb for not finding a solution to this, but when im trying to clone this sphere every 5 seconds, it just ends up exponentially cloning it rather than just cloning one at a time.

script:

local ball = script.Parent.Parent.BallDuper

while wait(5) do
	local clone = ball:Clone()
	clone.CFrame = ball.CFrame
	clone.Parent = ball.Parent
	clone.CanCollide = true
	clone.Transparency = 0
	clone.Anchored = false
end

That’s likely because your cloning the script as well, hence it clones multiple times.
Move the script outside of your ball, and index the ball through the workspace.

1 Like