Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I use an API using HttpService?

Asked by 8 years ago

Tried this, nothing happened..

hs = game:GetService("HttpService")
test = hs:GetAsync("http://www.roblox.com/UserCheck/DoesUsernameExist?username=Test", true)
print(test)

Output:

14:22:34.066 - http://www.roblox.com/UserCheck/DoesUsernameExist?username=Test: Trust check failed, The operation completed successfully.

14:22:34.066 - Script 'Players.Player1.PlayerGui.LocalScript', Line 2 14:22:34.067 - Stack End

1 answer

Log in to vote
0
Answered by
4Bros 550 Moderation Voter
8 years ago

You cannot send an http request to roblox directly, you must use a proxy if you want to do so.

Ad

Answer this question