Hello, I’m Jake, I’m attempting to use my little API module I put together in a few minutes, I keep getting an error trust check failed?
It’s supposed to get the current amount of players playing.
LUA:
--[[
COPYRIGHT 2021 RAMPAGE INTERACTIVE LLC. ALL RIGHTS RESERVED.
LEAKING OR SHARING THIS SOFTWARE IS PROHIBITED.
Written by: vq9o
About: BloxM Server Management
]]
-- Services
local ReplicatedService = game:GetService("ReplicatedStorage")
local HttpService = game:GetService("HttpService")
local module = {}
function module:getUniverseId(placeId)
local json = HttpService:JSONDecode(HttpService:GetAsync("https://games.roblox.com/v1/games/multiget-place-details?placeIds="..placeId))
return json.universeId
end
function module:getCurrentPlayers(universeId)
local json = HttpService:JSONDecode(HttpService:GetAsync("https://games.roblox.com/v1/games?universeIds="..universeId))
return json.data.playing
end
function module:getVists(universeId)
local json = HttpService:JSONDecode(HttpService:GetAsync("https://games.roblox.com/v1/games?universeIds="..universeId))
return json.data.vists
end
function module:getMaxPlayers(universeId)
local json = HttpService:JSONDecode(HttpService:GetAsync("https://games.roblox.com/v1/games?universeIds="..universeId))
return json.data.maxPlayers
end
return module