CoreScript Error

Hi! I’m new to Roblox Studio and im currently making a small obby; However, everytime i try to playtest my obby, this error keep showing up:


Can anyone please help me fix this error? It’s literally preventing me from playtesting the game and i don’t know how to fix it.

I tried using the exact same script and it works for me, strange.

Wrap that call to GetCore("GetBlockedUserIds") in a pcall().

I’m confused, how do i do that exactly?

local Game = game
local StarterGui = Game:GetService("StarterGui")
local Success, Result = pcall(function() StarterGui:GetCore("GetBlockedUserIds") end)
if not Success then warn(Result) end
if Result then
	for _, BlockedUserId in ipairs(Result) do
		print(BlockedUserId)
	end
end

The purpose of pcall() is to catch errors that can be raised by error-prone code.

Correct me if i’m wrong, but i thought the script that i keep getting errors from is a CoreScript? Which cannot be edited by normal users.

I wasn’t aware that, that was a CoreScript, I thought you were using the method in one of your own scripts.