![]() ![]() It has spiked in popularity over the last few years, specifically with younger generations, even more so in 2020. Roblox has been around since 2006, but it didn’t have nearly the same amount of attraction and appeal it does now. Roblox Active Player Figures: On the Rise? Roblox Roblox Active Player Figures: On the Rise?.Local success2, result2 = pcall(jsonDecode, http, result)įor _, serverItem in ipairs(result2. Local success, result = pcall(get, http, requestUrl) Local requestUrl = string.format(baseUrl, placeId, cursor) Local baseUrl = " local function getPlacesPlayingCountRecursive(placeId, playersCount, cursor, maxTries) Local proxyUrl = "" -Put your domain's proxy here. local http = game:GetService("HttpService") This can be used to determine the total number of players currently playing a game. The following API endpoint when given a place ID will provide a list of information regarding that place’s active servers. I haven’t used MessagingService in a while. I haven’t tested this yet, but you can ask any questions you’d like. Ms:SubscribeAsync("PLRCOUNT",function(message) Local ms = game:GetService("MessagingService") ![]() If you want to get the players in all servers, then use messagingservice. I’d also recommend running this when a player is added: local plrcount = 0 - Define the number at first. Plrcount = plrcount+1 - Update the player count. If v:IsA("Player") then - Check if it's a player. local plrcount = 0 - Define the number at first.įor i,v in pairs(game.Players:GetChildren()) do You should be able to just define a variable and use a for loop, then update that for loop everytime a player is found.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |