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

How to properly use a for loop within a while loop? [solved] [closed]

Asked by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

So, I had this script that would re-size a frame the farther and closer you get to it. Now, I tried to use a for loop to do it with multiple parts.. That's where I failed.

Thank you all for your help! I removed the code so nobody could try to just steal it.

My solution: Put the for loop INSIDE of the while loop. facepalm Thanks guys!

0
I don't get the "with multiple parts". Do you mean there are Parts in Lighting that will be cloned to Camera that will be checked to set the size of a Gui frame? Gee, may you explain it better? Tesouro 407 — 10y
0
I liked your question, but I can't understand what you are trying. Tesouro 407 — 10y
0
Sorry if I am misleading. I have 2+ Parts in Lightning that go into the CurrentCamera. I'm trying to make them all Resize without having to define all of them by variable. Shawnyg 4330 — 10y
0
Wow that is some nice code and a great question. I dont see what is wrong with this though im trying to figure it out! Teeter11 281 — 10y
View all comments (2 more)
0
Thank you all for your effort! Shawnyg 4330 — 10y
0
Figured it out. Check the Description again. Shawnyg 4330 — 10y

Locked by Shawnyg, 2eggnog, and BlueTaslem

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?