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
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.