I’m trying to make a verification game, keep getting this error:
HttpService is not allowed to access ROBLOX resources
Server Script:
local remotes = game.ReplicatedStorage.Remotes
local http = game:GetService("HttpService")
local serverKey = ""
local requestURL = ""
local function requestCode(userID)
local res = http:RequestAsync({
Url = requestURL;
Method = "POST";
Headers = {
["Content-Type"] = "application/json"
};
Body = http:JSONEncode({
["serverKey"] = serverKey;
["userid"] = userID;
});
})
if res.Success then
local body = http:JSONDecode(res.Body)
return body.VerificationCode
end
end
print(requestCode(2362120441))
I’ve removed the serverKey and ip:port for obvious reasons.