GetPlayers not working on server side script
问题 I am learning lua making games in Roblox. I have this sample of code that I got from their developer website. Players = game:GetService("Players") for i, player in pairs(Players:GetPlayers()) do print(player.Name) end This code works when I paste it in a local script but it doesn't when I paste it in a server side script. I don't get an error, but nothing gets printed. I am wondering why this is, and also what code do I need to use to get all players from a server side script. Thanks Edit ---