How to Resize a Brick using For Loops?
I am trying to make a block be resized using a loop, and I can't seem to get it to resize. It just stays the same size no matter what. And if you need to know, the original size is 4, 1, 4. I think I've done this correctly in the past, but now I can't get it to work. Thanks in advance!!! C:
01 | local part = script.Parent |
02 | local origpartcframe = part.CFrame |
03 | local origpartsize = part.Size |
06 | part.Touched:connect( function () |
10 | part.Size = part.Size - Vector 3. new( 0.2 , 0 , 0.2 ) |
11 | part.CFrame = origpartcframe |
18 | part.CFrame = origpartcframe |
19 | part.Size = origpartsize |
21 | part.Transparency = part.Transparency - 0.1 |