function isAuthenticated(player)
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, passId) ---- Line 11
end
function Start(plr)
game.ReplicatedStorage.RadioStuff.PlayerRadio:Clone().Parent = plr.Character
end
for i,v in pairs(game.Players:GetPlayers()) do
if isAuthenticated(v) then --- Line 324
Start(v)
end
end
Above is my code for a Radio gamepass. For some reason I get this error:
The code has worked in the past and I am confused how it is randomly causing this error.
You should use pcall on this, and this can be the function:
function isAuthenticated(player)
local success,returning = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, passId)
end)
return success and returning or false
end
I believe this is something on ROBLOX’s end. I doubt this is related, but some website functionality (such as certain user profiles as well as developer stats) are also currently nonfunctional for me.
same, we should make some bug raports, at me in all games (and empty baseplates made by me) I have much lag, and it errors me something like Black Frame is nil
Woke up today to MarketplaceService and DataStoreService errors, now I’m noticing I’m not getting any information from Players either. Every time I test my player is named “unknown.”