As the title says, I’m unable to disable the reset button. Here’s the script I’m currently using:
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
while wait() do
local ok = pcall(function()
game:GetService("StarterGui"):SetCore("ResetButtonCallBack", false)
end)
if ok then break end
end
I’m still able to reset. This is a LocalScript in StarterPlayerScripts. Can someone help me?
Didn’t work… I think it may be the new Roblox Menu UI. I tried another game that had the same code as the one I sent, it used to work normally, but now that I checked it again, it also doesn’t work there.
Ok, I did something and now it somehow works…?
Here’s the new code:
while wait() do
local ok, err = pcall(function()
game.StarterGui:SetCore("ResetButtonCallback", false)
end)
if ok then break end
end
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
The only difference from the first code is that I’m disabling the reset button first instead of hiding the GUI, using ok, err instead of just ok and using game.StarterGui instead of game:GetService("StarterGui"), which I don’t know why it only works this way, but I won’t judge it since it works at least.
Your original code says ResetButtonCallBack instead of ResetButtonCallback - the lowercase b in your newer code is correct. That’s why it didn’t work originally.