Is there possibly another endpoint other than api.roblox.com/userblock/getblockedusers ?
Any functions would also help;
Surprisingly, you can. I thought this would be a privacy concern, but it appears there is built in functionality to do this.
StarterGui::GetCore
has a âGetBlockedUserIdsâ option.
local BlockedUserIds = game:GetService("StarterGui"):GetCore("GetBlockedUserIds")
https://developer.roblox.com/en-us/api-reference/function/StarterGui/GetCore
There is also âPlayerBlockedEventâ and âPlayerUnblockedEventâ which you can listen on for in the situation a player unblocks or blocks a player during runtime.
I didnât actually realise this existed, thankyou kind stranger! I tought it wouldâve been in a different service (e.g. FriendService)
Yes! FriendService or a direct method of Player makes more sense than StarterGuiâŚ
I found the answer by looking at a thread posted by @BenSBk. I just opened his code and looked around to see how it works. Thanks Ben!
The problem now is when I do it, I do it so quickly it isnât even registered yet.
Edit: fixed it by making it yield