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?
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.