local Lbl = script.Parent.a
local text = {
"Have Fun!";
"Contains 2% Sugar";
"Contains 50% Code";
"Remember To Go To School";
"2 Cool 4 School";
"Made With Love";
"Made By Denys";
":p";
"Remember To Like The Game";
"The game is best played with volume on";
}
while true do
Lbl.Text = math.random(text)
wait(2)
end
return text
local text = {"Have Fun!", "Contains 2% Sugar", "Contains 50% Code", "Remember To Go To School", "2 Cool 4 School", "Made With Love", "Made By Denys", "Remember To Like The Game", "The game is best played with volume on"}
The second option is to keep the current table but replace the ; with , instead. You won’t need one at the very last text either.
local text = {
"Have Fun!",
"Contains 2% Sugar",
"Contains 50% Code",
"Remember To Go To School",
"2 Cool 4 School",
"Made With Love",
"Made By Denys",
":p",
"Remember To Like The Game",
"The game is best played with volume on"
}
Next off, your math.random is wrong. It should be:
while true do
Lbl.Text = text[math.random(1,#text)]
wait(2)
end