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.
local sc = script.Parent
local MainFrame = sc.MainFrame
local Rep = game.ReplicatedStorage.Objectives
local Texts = {Rep.Ob1.Value, Rep.Ob2.Value, Rep.Ob3.Value, Rep.Ob4.Value, Rep.Ob5.Value}
MainFrame.Ob1.Text = math.random(1,#Texts)

2 comments
Thanks it says the text now but it just takes the first one "Rep.Ob1.Value"
math.random() loves the number 1 for some reason.Also,please mark this as the answer.