Error caught by React (SetCoreGuiEnabled)

There error output

03:08:41.285 CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default:140: CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default:117:
------ Error caught by React ------
attempt to call a table value
------ Error caught by React ------
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberCommitWork.new:322 function commitUnmount
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberCommitWork.new:1291 function commitNestedUnmounts
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberCommitWork.new:1632 function unmountHostComponents
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberCommitWork.new:1760 function commitDeletion
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2590
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2608
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2248
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2095
CorePackages.Packages._Index.Scheduler.Scheduler.Scheduler:359 function unstable_runWithPriority
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.SchedulerWithReactIntegration.new:164 function runWithPriority
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:2092
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:1070
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:951
CorePackages.Packages._Index.ReactReconciler.ReactReconciler.ReactFiberWorkLoop.new:850
CorePackages.Packages._Index.Scheduler.Scheduler.Scheduler:304
CorePackages.Packages._Index.Scheduler.Scheduler.Scheduler:260
CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default:81 function doWork
CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default:104 function performWorkUntilDeadline
– Client
03:08:41.285 Stack Begin - Studio
03:08:41.286 Script ‘CorePackages.Packages._Index.Scheduler.Scheduler.forks.SchedulerHostConfig.default’, Line 140 - Studio
03:08:41.286 Stack End - Studio

script

-- LOADING FUNCTION
local HideCoreFunction = function(state)
	if state then
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
		Client.Enabled = false
	else
		game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
		Client.Enabled = true
	end
end

When load screen in game or studio.

What wrong with “SetCoreGuiEnabled” is in gui screen.

Anything fix this script.

This is a Roblox issue, your script has no errors. I would recommend using this when using SetCoreGuiEnabled though to avoid what the original post is having issues with.

whoops, made a mistake with the link there, should work now

1 Like

I add function thing in script.

local SetCore_Game = function(check)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, check)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, check)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, check)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, check)
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, check)
	--game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.SelfView, check)
	--game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Captures, check)
end

Its working. without error cause All or Captures disabled is not able works.

Roblox will fix soon “StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Captures or StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All”, next update.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.