I'm trying to get my script to choose a random value from a table and then print it, but instead of text, it comes out with something like
table: 1F19D310
local messages = {
"One little piggy went to market",
"One little doggy went to market",
"One little child went to market",
"One little man went to market"
}
local random = messages[math.random(#messages)]
print(random)

3 comments
This works?
What do you mean? This code works the way you've intended it to. It prints out a random from the array.
I've intended it to print the text, not a random sequence.