SetCore: ResetButtonCallback has not been registered by the CoreScripts

hi
i made a small 2-line script that disables ResetButtonCallback (reset character button). however, i get an error “SetCore: ResetButtonCallback has not been registered by the CoreScripts” whenever i run the game
said script:

game:WaitForChild("StarterGui")
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)

i could wrap it in a task.wait to prevent it from running too early, but that would be hacky imo. i’m looking for a more solid solution.

i would personally wrap it in a pcall like so:

repeat task.wait(0.1) until pcall(StarterGui.SetCore, StarterGui, "ResetButtonCallback", false)

there’s probably a better solution but this should work

will check out how it works, thanks!

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