GetBlockedUserIds has not been registered by the CoreScripts

As I’m using a module made by somebody else, I am unsure how exactly to combat the issue, but, if I’m able to I’d be able to implement a great system onto my game. This happens whenever I attempt to require a module script and shortly afterwards it spits out two errors, but I am assuming that they’re both related to the same issue.

You may a snippet of code from the module that I believe is causing the issue.

Serverscript

local blockedUsers = SGS:GetCore('GetBlockedUserIds')
local playerBlocked = SGS:GetCore('PlayerBlockedEvent')
local playerUnblocked = SGS:GetCore('PlayerUnblockedEvent')
local playerFriended = SGS:GetCore('PlayerFriendedEvent')
local playerUnfriended = SGS:GetCore('PlayerUnfriendedEvent')

localscript

require(game:GetService("ReplicatedStorage"):WaitForChild("PlayerList"))

1 Like

As the error says, you are calling :GetCore before Roblox’s CoreScript s (Scripts Roblox inserts into every game to handle things like the Escape Menu) actually set a value. Adding a task.wait() at the top should fix it. You could also have a loop and a pcall if that doesn’t work, continuously re-trying :GetCore until it stops erroring.