Trust Check Failed?

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

2 Likes

You can’t use http service for Roblox websites basically. I’m pretty sure that’s the issue here

This is robloxs API, public api.
https://games.roblox.com/docs#!/v1

I’m not sure that necessarily excludes it from the http service restriction? I wasn’t able to find much info about how to use that api but it seems like it could just be for external servers to use.

I think HttpProxyService will work.

I’d be surprised as I think you’ll also need an authorisation token to get anything useful back.
The way I understand it is that any information you might need should be available through a service provided by the GetService method

I’m using robloxs API for my private servers system, I need to fetch how many players currently in it.

Roblox blocks their website from HTTP Service to possibly prevent themselves from being DDosed by their own servers.

You could use
https://rprxy.xyz
It’s a proxy someone made to send requests to the Roblox Servers through studio

Edit: This method no longer works as the site has been shutdown

3 Likes