local Players = game:GetService("Players"):GetChildren()
function plrs_pls()
for i,k in pairs(Players) do
print(k.Name)
end
end
plrs_pls()
The script is located in ServerScriptService. It's mean to print the name of the players, looping through them. It simply doesn't print anything
Why should it work?
- the Players variable is defined.
- The for statement is written correctly
- The print functions function is written correctly too
- The function is called
I also didn't change anything at game services.
I really need help with this. It seems a little bit weird because I can't see any mistake

1 comment
Thank you! I didn't think about this :))