#For loop

32 messages · Page 1 of 1 (latest)

regal bridge
#

pairs depreated yuck

ember bison
#

Did u want to find all instances with the name of proximity prompt?

regal bridge
#

this is so confusing

ember bison
#

I dont think get children has any parameters

regal bridge
#

also u could just do nam:IsA("ProximityPrompt") to check if they're a proximity prompt instead of their names

ember bison
#

Just loop through all children

#

And yea

#

What he said 👍

terse jay
#

@dim hollow GetChildren has no parameters

terse jay
#

…

#

Well sadly you’ll have to go and learn what they are, as they’re very important in scripting

terse jay
#

Yes

#

Now you can also remove the “pairs” in the for loop

#

It’s useless in lua

ember bison
#

IsA

terse jay
#

That too

ember bison
#

Isa is a typo

terse jay
#

I also recommend to use the standardised variables in for loops or ones that are relevant to what you’re doing, it will make the script easier to read

#

Standardised are: i, v
Yet here you could also use i, child or i, proxyprompt

#

Remove the ()s around game.workspace

#

Just leave the () after GetChildren, but no need to surround it in them

#

Yes

#

Server script storage doesn’t exist

#

@agile trellis look at this shit

agile trellis
#

Amazinggg

terse jay
#

It should work as long as the proximity prompts don’t get added after the stack runs

#

Soo many errors

#

You see that output filled up with blue text right?

#

Each blue line is a script that stopped working

dim juncoBOT
#

studio** You are now Level 6! **studio

terse jay
#

Sorry I’m too tired for this right now

#

Try to check if it actually finds the proxies and things as such