im just a newb that tries to code so for training i made a loop that makes grow the block every second. but after first one it stops. why it isnt looping?
local x = 1
local y = 1
local z = 1
local tag = Instance.new("Part")
tag.Name = "Block"
tag.BrickColor = BrickColor.new("Bright red")
tag.Material = "Wood"
tag.CanCollide = true
tag.Parent = workspace
tag.Position = Vector3.new(0,10,5)
tag.Size = Vector3.new(x,y,z)
local loop = 1
while (loop >= 1) do
wait(1)
tag.Size = Vector3.new(x ,y + 1 ,z )
end

1 comment
the loop works but saying "y+1" doesn't change anything. you would have to say y=y+1. if y was 2, you are like constantly asking "what is 2+1, what is 2+1..." but its always 3. refer to the answers.