Random Value's Dosen't work why just says the number not the text why?
I am making a random text maker like it isnt the same text every time you get a mission it is random what mission you get i want it to take the info from a value in the replicatedstorage like Ob1, Ob2 they have the vaule like get a gun or so all the objectives are different but i cant get it to work.
So this is the script i have for now.
1 | local sc = script.Parent |
2 | local MainFrame = sc.MainFrame |
3 | local Rep = game.ReplicatedStorage.Objectives |
5 | local Texts = { Rep.Ob 1. Value, Rep.Ob 2. Value, Rep.Ob 3. Value, Rep.Ob 4. Value, Rep.Ob 5. Value } |
7 | MainFrame.Ob 1. Text = math.random( 1 ,#Texts) |