Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I solve the Trust Check failed problem in my script?

I am currently creating a in-game gamepass shop and for that I want to get every available gamepass of this game

I got the link for the webapi of ROBLOX but it gives me this error:

10:26:12.665 - https://www.roblox.com/games/GetGamePassesPaged?placeId=177052655&startIndex=1&maxRows=3: Trust check failed 10:26:12.665 - Stack Begin 10:26:12.666 - Script 'Workspace.Fountain.StatuePlace.Init', Line 22 10:26:12.666 - Stack End

And I do not know why I even tried the link with https:// instead of http:// but both won't work.

That is the script so far:

local http = game:GetService("HttpService")

local tabel = http:JSONDecode(http:GetAsync("https://www.roblox.com/games/GetGamePassesPaged?placeId=177052655&startIndex=1&maxRows=3"))

1 comment

0

And the URL work fine for me

1 answer

✓ Accepted answer

The problem with your code is you're trying to receive directly from roblox, which roblox prohibited for either security or lag reasons. To fix this you would either have to send the request to a server that will then send the request to roblox or just store the information on a server.

2 comments

0

And how would that look like?

0

I found out that the website gets blocked by the HttpService :(

This discussion is preserved as it was. New answers, comments, and votes are closed.