This repository has been archived on 2026-10-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-11-05 11:26:22 -08:00

29 lines
695 B
Lua

local HttpService = game:GetService("HttpService")
local function pingServer()
local playerCount = game.Players.NumPlayers
local postData = {
id = 13,
players = playerCount
}
local jsonData = HttpService:JSONEncode(postData)
local success, response = pcall(function()
return HttpService:PostAsync("https://www.novetusserverlist.com/api/ping_server", jsonData, Enum.HttpContentType.ApplicationJson)
end)
if success then
print("Ping successful!")
print("Response:", response)
else
print("Error:", response)
end
end
while true do
pingServer()
wait(10)
end