How would I do a loop for changing a property, then changing it back when it reaches a goal?
repeat
until --Conditions
or
while true do
wait(1) --Always put a wait or you will crash your studio
if StopTheLoop == true then
break --stops loop
end
end
Don’t use while true do loops unless you absolutely have to (which is almost never).
while not StopTheLoop do
print('StopTheLoop is',StopTheLoop)
wait(1)
end