The math.random for a string is returning a number instead a string? After I say the correct work then it error's again with this...
attempt to index upvalue "Word" ( a number value )
local Word=''
local ChatTable={
'Apple',
'Clock',
'Mouse',
'Trash',
'Bird',
'Ipod',
}
function NewWord(plr)
for _,v in pairs(ChatTable) do
local z = math.random(1,#v)
-- This returns a number value BUT I need it to return a string value
Word = z
end
wait()
print(Word) -- prints "5"
Note(plr,'The New Word Is ['..Word..']',(45/2/9))
end
