I am working on a leaderboard and want to get blocked players but GetCore(“GetBlockedUserIds”) returns a blank table when I try to use it. I know that I have blocked some players, I even checked my blocked player list, but it is not working for some reason.
Currently I tried adding a multi-second wait, turning on http access, turning on studio api access, and I tried it in the actual game on multiple accounts but nothing worked. has this been deprecated or am I doing something wrong?
local Blocked = game:GetService("StarterGui"):GetCore("GetBlockedUserIds")
print(table.unpack(Blocked))
Edit: here is an image for anyone who wants an image:
which api gets blocked users? I have been looking around but people mostly seem to use this vs an api.
edit: I found this api, but I am not sure how to connect to it within roblox yet, I have never used apis within roblox.
edit 2: nevermind, that api won’t work because api requests can’t be from the client and that api requires being requested from the client.
edit 3: After some testing with the getcore method I have got it to return a userid, and it seems that it may only return userids of blocked players that are ingame.
edit 4: yup, it seems to only return userids of ingame players.