Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I do not understand the value "nil" can some please explain?

I am confused on the value "nil" because what is the point in scripting something that is nothing?

6 comments

0

Show us the script.

0

I dont have any script I just dont understand the value "nil"

0

Oh, but then what is the problem?

0

It's basically the value doesnt fit in that section.

0

I just do not understand why you would put nil in a script because it means nothing?

0

No, a nil is an error.

2 answers

"nil" means something doesn't exist or not present. Typically why you get errors called attempt to index nil with 'obj'. You can also set values to be nil as a temporary value.

This discussion is preserved as it was. New answers, comments, and votes are closed.