2 things that would make it easier to help:
First the pastebin is set to private, meaning that no one can see the code.
Second: It would help if you also say at which line it occurs.
Something that may help you spot the error, assuming it isn't already solved. The error means that somewhere in your code you think that you have a table and try to use it like one when in actual fact it isn't even a value.
Code:
local a = {example : 1}
print(a.example) // prints 1
local b = nil
print(b.example) //this gives the above error
The cause can be a simple misspelling, wrong number of parameters to a function that wants a table or thinking something is in scope when its not.