502: API Services rejected request with error: HTTP 0 (HTTP 403 (HTTP/1.1 403 Forbidden))
local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetDataStore("Save2")
game.Players.PlayerAdded:connect(function(player)
if players[player.Name] then return end
--Defaults player data
players[player.Name] = {
Money = 0,
Balance = 0,
}
active[player.Name] = false
--Load player data if exists
local success, data = pcall(function()
return DataStore:GetAsync("p_"..player.UserId)
end)
print(data)
if typeof(data) == "table" then
players[player.Name] = data
end
end)
My friends and I have been stuck on this issue for a month now, unsure if it’s a silly error or a silly goose mistake. We’ve considered the following:
Enabled API access to Studio
Enabled HTTPServices
Any response would be helpful, please save us from our suffering.
Unfortunately we don’t think that’s the issue. We’ve got the other game using Team Create on a non-group place but it’s operating fully without errors.