Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Turn 'Reset Button' error: SetCore: ResetButtonCallback has not been registered by the CoreScripts?

wait()
local walk = script.Parent.Head:WaitForChild("Running")
walk.Volume = 0

local human = script.Parent.Humanoid
human.WalkSpeed = 22
wait()
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
game.StarterGui:SetCore("ResetButtonCallback", false)

all of this code works until the last line which is giving me the error: SetCore: ResetButtonCallback has not been registered by the CoreScripts. anyone got a fix?

1 comment

0

the core gui has to have loaded at least(the character spawned) once before ResetButtonCallBack so putting it in a startergui localscript is the best option.

1 answer

✓ Accepted answer

That just means the CoreGui hasn't loaded yet.

You can use the following code to ensure the reset button is disabled:

LocalScript:

repeat
	local success, failure = pcall(function()
		game.StarterGui:SetCore("ResetButtonCallback", false)
	end)
	wait()
until success

This loop waits until ResetButtonCallback successfully loads and is disabled then breaks.

1 comment

0

Thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.