Repeat - Until problem

Hello, so I’ve made a repeat until loop but for some reason it doesn’t work at all
Here is the loop:

	script.Parent.Size = script.Parent.Size +,0,0)
	script.Parent.CFrame = script.Parent.CFrame *,0,0)
until script.Parent.Size ==, 63.76, 58.28)

I also tried to use a while true do with a Break() function, but still didn’t seem to work.

Here is the size of the part before resizing: (351, 63.76, 58.28)

Maybe you should change the repeat line to repeat wait().

Your script timed out since you were repeating too fast. You need to add a wait().

Yeah, also, what didn’t work? Does it not stop when it reaches its requirement or did it happened too fast?

Eveb when I add wait() still same result, won’t move an inch

It doesn’t do what I told it to repeat at all.

I don’t understand what you mean? so it doesn’t occur at all? or does it not stop when it reaches its requirement or did it happened too fast?

It doesn’t occur at all, stays exactly the same.

1 Like

first of all, you need a wield like wait() and other stuff.
take it in mind even if it doesn’t work, it is important for your future stuff.

second of all, there may is a chance that the script didn’t ran, or that specific line of code didn’t ran.

Alright, I’ve found the solution (god I’m such an idiot), anyways, I had a while true do loop before it… thanks to you I’ve found it.

You should increment a variable and then set + compare it.

local x = 351

x = x + 8
script.Parent.Size =, script.Parent.Size.Y, script.Parent.Size.Z)
script.Parent.CFrame = script.Parent.CFrame *,0,0)
until x >= 2048