Still have questions? Join our Discord server and get real time help.
0

# The cakes are multiply-ing by the second. what do i do?

--Script
while true do
wait(3)
local SmallCake = script.Parent
local clonedSmall = SmallCake:Clone()
clonedSmall.Parent = game.Workspace.Cakes.ClonedCakes
clonedSmall.Position = Vector3.new(-280.727, 831.309, -232.018) -- Where the cake will spawn

end


This is a script I made. So if i 'Play', or 'Run', this will create cakes falling out from the stove. But each time, the cakes get multiplied and I just waited like 30 sec but about 100 cakes are coming out on the stove every 3 sec! help me. *Supposed to come 1 cake in 3 sec

local sec = 'second' :D

2
The script is inside the Cake you're cloning. This in turn will create more scripts that have a while loop that clone's the script too. Smite me if i'm wrong. xPolarium 1337 — 8mo