I have a code to make a block grow.
block = script.Parent pos = block.CFrame speed = 1 while wait() do block.Size = block.Size + Vector3.new(0,1, 0) block.CFrame = pos wait(10) end
This works fine. However, I would like it to stop growing at a certain height. How would I do this?
You could do:
block = script.Parent pos = block.CFrame speed = 1 repeat block.Size = block.Size + Vector3.new(0,1,0) block.CFrame = pos wait(10) until block.Size = — desired size