I wrote a script with 7 different strings, and I made a loop to display them one at a time, but I can't get it to work. Did I write something in the wrong way?
Script
Label = script.Parent.TextLabel
Tips = {
"Tips n' Tricks",
"Claim a Space Agency by touching the grey door in an empty tycoon",
"Prioritize your cash income before buying optional upgrades",
"Avoid combat with more powerful players, as you might end losing",
"Button Colors",
"Green : Increase your cash income",
"Red : Optional upgrades"
}
while true do
for i = 1, 7 do
Label.Text = Tips[i]
i = i + 1
wait(1)
if i == 8 then
i = 1
end
end
end
The "Tips" table contains every string, while the loop below it displays the text in a TextLabel. The script is below a ScreenGui, which is below StarterGui.
Thanks!

1 comment
Thank you very much! I don't know very much about pairs and ipairs, so when I tried to write something while I was thinking in that, I merged the 2 loops (while and for)