111,452 views
32 votes
32 votes
Please explain what the script nil means in RS (RBLX Studio)

User Theotherdy
by
3.2k points

2 Answers

29 votes
29 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 Sarasgupta
by
3.3k points
21 votes
21 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 Ben Sheldon
by
3.0k points