In my game, I have this at the beginning of LocalScript:
local StarterGui = game:GetService("StarterGui")
local ResetButtonSuccess
while not ResetButtonSuccess do
ResetButtonSuccess = pcall(StarterGui.SetCore, StarterGui, "ResetButtonCallback", false)
wait(0.2)
end
Expected Behavior
Since StarterGui:SetCore is wrapped inside a pcall, it should not stop with this error.
Actual Behavior
This script is 2 years old and this problem started today, a few hours ago.
When running the game in Studio, SOMETIMES the script stops with this error:
I can’t reproduce either with a new project, but as I said, it started to happen today with this old project.
It’s very similar to Error: "GetCore: GetBlockedUserIds has not been registered by the CoreScripts", which seems to be fixed some days ago, but unfortunately, it seems to have been replaced by this new error…
local function disableReset()
StarterGui:SetCore("ResetButtonCallback", false)
end
if Configurations.CAN_RESET == false then
while task.wait(1) do
if xpcall(disableReset, disableReset) then
break
end
end
end
I have this as well for a while now and never really cared about it anymore
Thank you, but what’s the difference, since the problem reported has more to do with an improper interruption of Studio by an error, since the error generator is inside a pcall and therefore not Is it ok to have an interruption?