local possibilities = {"Brawler", "Bulky", "Boomer", "Loose Cannon", "Glass Cannon", "Big Brain", "Bookworm", "Lazy", "Inexperienced", "Nerd", "Runner", "Ducker", "Inaccurate", "Blitz", "Bot", "Grinder", "Persistant", "Tryhard", "Bruiser", "Rash", "Tank", "Braindead", "Casual", "Explosive", "Juggernaut", "Intellect", "Natural", "Instinctive", "Mage", "Slow Cannon"} local textNum for i = 1, 30 do textNum = math.random(#possibilities) print(textNum) wait(2) end
To read from an array you need to add a pair of brackets after its reference and specify the index number of the element inside ([pos])
local possibilities = {"Brawler", "Bulky", "Boomer", "Loose Cannon", "Glass Cannon", "Big Brain", "Bookworm", "Lazy", "Inexperienced", "Nerd", "Runner", "Ducker", "Inaccurate", "Blitz", "Bot", "Grinder", "Persistant", "Tryhard", "Bruiser", "Rash", "Tank", "Braindead", "Casual", "Explosive", "Juggernaut", "Intellect", "Natural", "Instinctive", "Mage", "Slow Cannon"} local textNum for i = 1, 30 do textNum = math.random(#possibilities) print(possibilities[textNum]) wait(2) end
local possibilities = {"Brawler", "Bulky", "Boomer", "Loose Cannon", "Glass Cannon", "Big Brain", "Bookworm", "Lazy", "Inexperienced", "Nerd", "Runner", "Ducker", "Inaccurate", "Blitz", "Bot", "Grinder", "Persistant", "Tryhard", "Bruiser", "Rash", "Tank", "Braindead", "Casual", "Explosive", "Juggernaut", "Intellect", "Natural", "Instinctive", "Mage", "Slow Cannon"} local textNum for i = 1, 30 do textNum = math.random(#possibilities) print(tpossibilities[textNum]) wait(2) end