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

Can anyone help me solve this API Services error?

Asked by 5 years ago
Edited 5 years ago

Can anyone help me? I can't solve it? Its in edit from a friend and i am in TeamCreate.

game.Players.PlayerAdded:Connect(function(player)
    local admins = {"MaxDev_BE"}
    local politiedata = game:GetService("DataStoreService"):GetDataStore("politie")

    local ranks = Instance.new("Folder")
    ranks.Name = "Rank"
    ranks.Parent = player

    local politie = Instance.new("BoolValue")
    politie.Name = "Politie"
    politie.Parent = ranks
    politie.Value = politiedata:GetAsync(player.UserId) or false
end)

error: 502:API services rejected request with error: HTTP 0(HTTP 403(HTTP/1.1 402 Forbidden)) -- line 12

0
Make sure your games DataStore API Service is enabled in your games configuration settings on the Roblox Website under basic settings make sure Enable Studio access is enabled. Impacthills 223 — 5y
0
Make sure "Studio Access to API Services" is ticked. User#19524 175 — 5y
0
yes, it is enabled . MaxDev_BE 55 — 5y

1 answer

Log in to vote
1
Answered by
thebayou 441 Moderation Voter
5 years ago

I've had this problem before, IIRC it has something to do with the fact that you don't own the game and it's your friend's.

I don't remember exactly how I got around it, but I think you can only test it out in the actual player (and not in studio). Also try getting your friend to run it.

0
Okey! MaxDev_BE 55 — 5y
Ad

Answer this question