function grow()
for i = 1,120 do
ball.size = ball.size + Vector3.new(.2,.2,.2)
wait()
end
end
function shrink()
for i = 1,120 do
ball.size = ball.size + Vector3.new(-.2,-.2,-.2)
wait()
end
end
COMMUNITY QUESTION
How can I group these two for loop functions into one?
1 answer
(click view all lines)
-- ball = script.Parent
function grow()
for i = 1,120 do
ball.Size = ball.Size + Vector3.new(.2,.2,.2)
wait()
end
end
function shrink()
for i = 1,120 do
ball.Size = ball.Size + Vector3.new(-.2,-.2,-.2)
wait()
end
end
--[[
while true do
grow()
shrink()
end
]]
looping your functions nonstop
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
btw Im aware size whould be *Size
What do you want to do again... Make them run at the same time?
no I want the first for loop to run, and then the second over and over while the tool is equipped