ssstr = umg dat pie do" for i = 1,#ssstr do game.Players.Bob.PlayerGui.BALD.Text = (string.sub(string.upper(ssstr[math.random(1,#ssstr)]),1,i) wait(.01) end
I want to make it a random letter capital. Also, all game.Players.Bob.PlayerGui.Bald.Text is correct. I just can't figure out how to make a random letter uppercase.
local function split(_string) local letters = {} for i in string.gmatch(_string, "%a") do table.insert(letters, i) end local letter = letters[math.random(#letters)] return string.gsub(_string, letter, letter:upper(),1) end print(split("if you like pina coladas"))