Trust check failed

I’m making a ‘Friend checker’ type of game, and this error message pops up when I try to (GET)
someone’s friend count. Could anyone tell me how I should do it?
image
Script:
image

1 Like

Roblox.com apis do not work when using them on Roblox, change roblox.com to rprxy.xyz since you need to use a proxy for that

2 Likes

I’m pretty sure you can just use Players:GetFriendsAsync instead of making an HTTP request to Roblox’s web API, unless there is a reason you need to do that instead.

1 Like

Exactly. Roblox blocks the use of API calls for anything under the Roblox.com domain. However, it is better to use whatever Roblox does behind the scene with the functions listed here.

Also for the OP, make sure you wrap API calls in pcall (protected call) because they can on occasion error. This includes JSON encode and decoding requests, as well as any http request.

cc @devwingfr