Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

how get total of players from game NOT SERVER?

Asked by 4 years ago

hi like i said in title how im can do that

0
#game:GetService("Players"):GetPlayers() Spjureeedd 385 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

not too sure what you mean, but you can get every player like this:

local players = game.Players:GetPlayers()

or

for _,player in pairs(game.Players:GetPlayers()) do
    print(player.Name)
end

Be sure to accept this if it answered your question, Thanks

0
I think he's referring to the total number of players playing his game. gladii 2 — 4y
0
number of Players in all Servers flinston3232 -2 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
local GetName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)
local http = game:GetService("HttpService")
print("https://www.rprxy.xyz/games/"..game.placeId)
local web = http:GetAsync("http://api.rprxy.xyz/universes/get-universe-containing-place?placeid="..game.placeId)
web = (web:gsub("[%D+]", ""))
local play = http:GetAsync("http://games.rprxy.xyz/v1/games?universeIds="..web)

local start,last = play:find("playing")
last=last+2
local start,back = play:find("vis")
back=back-5
local plays = play:sub(last+1,back)
print(plays)

ooga ooga im need know java well

Answer this question