I have tried to do the following:
tree = script.Parent
script.Parent.ClickDetector.MouseClick:Connect(function()
tree.Size = Vector3.new(1,2,1)
end)
That would work, if I repeated it like 2000 times which I don't plan on doing, so could anyone tell me how I would do this?
EDIT:
I managed to figure it out myself by doing:
function grow()
script.Parent.Size = script.Parent.Size + Vector3.new(0.1,0.1,0.1)
end
script.Parent.ClickDetector.MouseClick:connect(grow)

1 comment
Since you've solved it already let me give you a tip: You can do tree.Size += Vector3.new(0.1,0.1,0.1) and it's the same thing as what you did because x += y means x = x + y. This is the same for x *=, x -=, x /=.