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

3 comments
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.
Make sure "Studio Access to API Services" is ticked.
yes, it is enabled .