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

User Binncheol
by
8.0k 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
8.5k 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
8.8k points

Related questions

asked Feb 18, 2021 208k views
N P asked Feb 18, 2021
by N P
8.1k points
1 answer
1 vote
208k views
asked Sep 10, 2022 89.3k views
Aditya Thakur asked Sep 10, 2022
by Aditya Thakur
8.4k points
2 answers
5 votes
89.3k views