SetCore:() Trouble

I think this could be a glitch but I have resetting disabled using this line of code right here
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
Sometimes it says “SetCore: ResetButtonCallback has not been registered by the CoreScripts” and sometimes it doesn’t and it works normally, I don’t change anything. It does this by itself and it’s in a small local script for disabling a few things.
Here’s the full code if you want it lol

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

Yeah, literally 2 lines for disabling these 2 and pretty much it

ResetButtonCallback has not been registered by the CoreScripts