I was googling this, and I found a previous question that asked the same thing, but the answer did not work for me. the script that is running this code is in ServerScriptService, and I want to access a folder within that player
local Plrs = game.Players:GetPlayers()
Plr1 = Plrs[math.random(1,#Plrs)]
Plr1.Settings.IsSelected.Value = true

2 comments
Try doing print(Plr1). What does it print?
I tried that before, it does nothing. not even an error