Random Text Box

Im trying to make it so that its a loading screen, and it shows fun facts, i want it to choose like 2 out of the 10 fun facts and show them in the text label. I dont know how to randomize it tho…

3 Likes
local FunFacts = {"funfact1", "funfact2", "funfact3"}

local FirstRandom = table.remove(FunFacts, math.random(#FunFacts))
local SecondRandom = table.remove(FunFacts, math.random(#FunFacts))

TextLabel.Text = FirstRandom .. "\n" .. SecondRandom
1 Like

Wow thanks, let me make sure this works and ill get back to you.

Thanks, got it to work fine, and i added some cool additions

Make sure to mark @hell_ish’s reply as a solution if you have no further questions!

1 Like