How to make a cycling facts script

Hello!

I’m trying to make a cycling tips textlabel for my loading screen, but I don’t really know how to do this as I’ve never really used math.random.

If anyone is able to link me any devforum, or youtube videos on this, much would be appreciated!

Thanks!

using a table you can just select a random value from it by passing 1 and the table’s length into math.random and then getting that value in the table

exampleTable[math.random(1, #exampleTable)]

math.random takes in min, max

1 Like