Well I keep seeming to find errors in this script of mine, I will ask one by one. Thank you scripting helpers for this site. Anyways, I was using a table for example:
local pies = {a,b,c,d,e,f,g}
local noobs = math.random(1, #pies)
print(noobs[pies])
What seems to be wrong?

1 comment
Just want to point out to you that when using random numbers, if the range starts with 1, then implying it is unneeded, just do math.random(#pies)