Help disabling reset button

Alright, so I am trying to disable the reset button. What’s the problem?

Well here’s the script:
local StarterGui = game:GetService(“StarterGui”)
StarterGui:SetCore(“ResetButtonCallBack”,false)

But, it’s giving me this error: SetCore: ResetButtonCallBack has not been registered by the CoreScripts

Any way to fix it?

2 Likes

Try using “ResetButtonCallback” instead of “ResetButtonCallBack”

3 Likes

Core callbacks take some time to actually register. Wrap it the call in a pcall, and call it periodically, like the code from this thread`:

local coreCall do
	local MAX_RETRIES = 8

	local StarterGui = game:GetService('StarterGui')
	local RunService = game:GetService('RunService')

	function coreCall(method, ...)
		local result = {}
		for retries = 1, MAX_RETRIES do
			result = {pcall(StarterGui[method], StarterGui, ...)}
			if result[1] then
				break
			end
			RunService.Stepped:Wait()
		end
		return unpack(result)
	end
end

assert(coreCall('SetCore', 'ResetButtonCallback', false))