Hi, am a new scripter, and i want to know what "nil" means does it means something about something with a value that means something?
nil isn't none-thing I personally use very much, but it is fairly useful.
nil is a value that represents nothing. Not 0, not an empty string, but nothing.
Some uses of nil can be an alternate for the "Destroy()" function:
workspace.Part.Parent = nil
vs workspace.Part:Destroy()
Another use of nil is for values. Specifically, ObjectValues
.
model.Settings.ItemLocation.Value = nil
.
In the example above, we could say an item is "out of stock", so the item's location is nil.
These are just a few of the uses for the built-in variable, nil, which is a value representing nothing.
Now that your rev has been filled up, go ahead and blast off!
If you have any further questions, message me here: