So I want to have a GUI popup for a random player in my table

table.insert(playersPlaying,player.UserId)

local theChosenOne = playersPlaying[math.random(1,#playersPlaying)]

theChosenOne.PlayerGui.Role.Main.RoleDisplay.Text = "Psychic"

How would I manage this? Any help is appreciated.