StarterGui:SetCore("ResetButtonCallback", false) Not working

I’d like to disable the Reset Button in the pause menu. However, nothing I do seems to ever work.

local function Whocares() 
    pcall(function()
	   PlayerGui:SetTopbarTransparency(1)
	   StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
	   StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, false)
	   StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
	   StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
	   StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
	   StarterGui:SetCore("TobBarEnabled", false)
	   StarterGui:SetCore("ResetButtonCallback", false)
    end)
end
RunService:BindToRenderStep("Idc", Enum.RenderPriority.Camera.Value, Whocares)

Excuse the code, got a bit upset at Roblox.

4 Likes

LocalScript in StarterCharacterScripts:

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

The problem is with
RunService:BindToRenderStep(“Idc”, Enum.RenderPriority.Camera.Value, Whocares)
You gotta make the renderpriority thing a number, like 0
RunService:BindToRenderStep(“Idc”, 0, Whocares)

@MayorGnarwhal I’ve had it running in ReplicatedFirst. I’ve moved it to StarterCharacterScripts. While the Topbar etc is disabled. The reset button still has it’s default functionality.

@nulllifeleft, The Camera.Value is I believe either 0 or -1… anywho it’s the highest priority. I’ve gone ahead and changed it to 0.

The issue is still there though. I’ve done a search in all my scripts to see if maybe there was something setting it back. Other than the default health script. I can’t think of anything.

Sometimes the code executes to fast, adding a pcall function that repeats until it’s successful should fix the issue.

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

while not ResetButtonSuccess do
	ResetButtonSuccess = pcall(StarterGui.SetCore, StarterGui, "ResetButtonCallback", false)
	wait()
end

Also yes, this should be a LocalScript in StartPlayerScripts, under StarterPlayer

11 Likes

I’ve done loops and runservice… All in pcalls. Yet this is the one that works…

I’ve been struggling for hours and still don’t know why this solution works. But thanks for the help. :smiley:

Just gonna chuck it up as Roblox being Roblox.

2 Likes