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"))
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.