I'm not quite sure what this does, and I think it has something to do with a table. I just want to know the purpose of this.
For example, I want to know what #list
does in a portion of a follow script that some NPCS use.
local list = workspace:GetChildren() for i = 1,#list do --code or whatever end
List is a table, and #list is going to do the "--code or whatever" once for however many values are in the table. The # is just finding how "long" the table is.
with a string, it will return the length of the string as an integer, representing how many characters are in the string
for tables, it will return the highest number index it can possibly return without getting nil,note that it will not work with string indexes