Hello.
Today my game lost a lot of players because of this error/bug.
Here what code looks like:
How about making it a free gamepass day!
This belongs in Engine Bugs most likely.
This may happen cause of certain Roblox services being down. You should handle API requests inside pcalls to avoid breaking the script.
local Success, Error = pcall(function()
if S_M:UserOwnsGamePassAsync(plr.UserId, id) or S_M:UserOwnsGamePassAsync(plr.UserId, id2) then
XraySetup()
end
end)
if Success then
print("Success making the request")
else
warn(Error)
--maybe retry after an amount of time?
end