Just trying to loop through a table here, but it doesn’t seem to work. #words returns 0.
local words = {
x = "yes"
, y = "no"
, z = "yes"
}
for i = 1,#words do
print(words[i])
if string.match(words[i], "yes") then
print("got a match")
end
end
local words = {
x = "yes"
, y = "no"
, z = "yes"
}
for _,word in pairs(words) do
print(word)
if string.match(word, "yes") then
print("got a match")
end
wait(.1)
end