Error? Attempt to concatenate (NON table)
ANSWERED:
https://gyazo.com/6a99c74e7868f9b4e6225f3edb678837
QUESTION QUESTION QUESTION
Alright, so... My script is erroring, and in the error box it's saying:
What is the error?
(Added because I need to have a question mark)
Note, the script I will provide is NOT the entire script, but will be all that is needed...
01 | function getnextpos(Table) |
03 | local toreturn = num+ 1 |
07 | function a(z,selections) |
08 | local x = math.random( 1 ,#z) |
10 | for index,returned in ipairs (selections) do |
22 | function selectrandom(location,count) |
23 | local z = location:GetChildren() |
27 | local g = a(z,selections) |
29 | table.insert(selections,getnextpos(selections),g) |
The issue, as I understand it, is NOT with my table, but with my returned variables, and functions
I tried using a local function, but since it did not work, tried to move it out to a normal function, which also did not work. DO not worry about shortening any code you give me, as I can do that myself.
How should I fix this error??????
(Added because I "Need to have a question mark".)
Thanks, Taryo. ;)