229k views
2 votes
Please explain what the script nil means in RS (RBLX Studio)

User Binncheol
by
3.4k points

2 Answers

2 votes

Answer: Attempt to index nil with _ means that the code is attempting to index something that doesn’t exist. Check the path you created for the property you’re trying to find.

Also, the PlayerGui “RareCrateOpen” may not have loaded in when this script is running, so I recommend changing this line:

Step-by-step explanation:

User Germanio
by
4.2k points
5 votes

Answer:Nil means zilch, nothing, nonexistent. When working with variables, assigning nil to the variable, doesn't "destroy" the original value, per se, but rather replaces the original value. Also, when calling a non-existing value, you will get nil as well.

Step-by-step explanation:

User Armen Sanoyan
by
4.1k points