Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What loop do I use?

Asked by
Ripik 5
9 years ago

Hi, I want to make a repeat until in this, but I do not know how to make it end when parent.Transparency == 0 , I don't know if it is in a different problem or something else, but I did it like this and it crashed the studio:

parent = game.workspace.Baseplate

parent.Transparency = -0.001 wait (0.01) repeat until parent.Transparency == 0

What am I doing wrong? Thank you in advance.

Answer this question