I’m trying to get a live game’s visit count but I don’t want to use an API since I want it to be as simplistic as possible and I’m giving it to a friend.
Thanks in advance!
No, you need httpservice, that’s what they’re for
However, this solution won’t work if you didn’t publish the game with it, but you can add up a datastore value Everytime a player joins.
You can use a data store as @regexman said but your better of using the API. Data stores are way more complicated and if too many people join at the same time, sending so many requests can overwhelm it.
1 Like
try
while wait() do
local playercount = #game.Players:GetPlayers()
print('there are '..playercount ..' players in this server')
end
That’s currently playing, not total visits.