I simply just want to print the names of the players in the server, though my script doesn't work (it doesnt show any errors though), it is a ServerScript placed in workspace
local getPlayers = game.Players:GetPlayers()
for i, v in pairs(getPlayers) do
print(i.." = "..v.Name)
end

1 comment
This script runs before you as a player even joins the server, so thats why it doesn't print anything