Is there a way to disable the resetbutton other than resetbuttoncallback, for instance if you press reset nothing happens. The button isnt disabled but nothing will happen if you reset. Is there a way to do this?Preformatted text
This post was updated to showcase a better approach and guidance in the deactivation of the Reset Button.
Well… no.
You cannot deactivate the ResetButton without the usage of the ResetButtonCallBack. Although it may sound a bit complex to do so, it’s quite simple. Here’s a step-by-step guidance on a proper manner to applicate the ResetButtonCallBack.
Application guide.
This guide assumes you possess basic knowledge on recognizing services and instances, as well as proper understanding on how to manage Studio with little effort.
- Within the Explorer tab, locate the
StarterGuiservice. - Insert a
LocalScriptinStarterGui. - You’re free to rename the script to your liking, but for this guide, I’ll call it
ResetButtonDisablerfor testing purposes. - Replace the following block of code:
print("Hello world!")
- With the lines below.
---// Roblox Services
local StarterGUI = game:GetService("StarterGui")
---// Deactivates the Reset Button
StarterGUI:SetCore("ResetButtonCallBack", false)
print("SUCCESS | Reset button core GUI disabled!") -- Debugging
Error handling.
However, there’s a slight chance you’ll bump into an error. In the case the CoreGUI for the ResetButtonCallBack has not properly loaded, it’ll return an error other than disabling the reset button, and that’s not what we want. There are various routes to stop this from happening, but I’ll highlight you probably the most efficient one — in my POV.
The repeat loop
- Develop a
pcall()within arepeatloop until the reset button is successfully disabled with aprint()method for debugging purposes. Not very useful in this case, but it’s best to start adding debugging methods to identify potential errors.
---// Roblox Services
local StarterGUI = game:GetService("StarterGui")
---// Deactivates the Reset Button
repeat -- Starts the repeat loop
local success = pcall(function()
StarterGUI:SetCore("ResetButtonCallback", false)
end)
task.wait(1) -- Cooldown to avoid freezing
until success -- Runs the loop until the Reset Button is disabled.
print("SUCCESS | Reset button core GUI disabled!") -- Debugging
I hope I managed to full-fill your request. Have a nice day! ![]()
Adding to what mxlky_moon said, you can use StarterGui:SetCore("ResetButtonCallback", false)
However if the coregui for “ResetButtonCallback” has not loaded it will throw an error. To combat this, add a pcall (protected call) and a simple loop to stop it. Like such:
repeat
local success = pcall(function()
starterGui:SetCore("ResetButtonCallback", false)
end)
task.wait(1)
until success
This is just an example, edit it to your hearts content.
Note: If your problem has been solved, please mark mxlky_moon’s post as a solution.
If none of these help you…:
That solution has 3 other solutions attached to it.
…Then depending on what you need this for I can also suggest tping the player to their death spot immediately after resetting.
local Game = game
local StarterGui = Game:GetService("StarterGui")
local Success
while true do
Success, _ = pcall(StarterGui.SetCore, StarterGui, "ResetButtonCallback", false)
if Success then break else task.wait() end --No need to yield if the operation was successful.
end
https://developer.roblox.com/en-us/api-reference/function/StarterGui/SetCore
u dont need a pcall, you can do it just by :
> game["Run Service"].RenderStepped:Wait()
> game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
2 years later haha, anyway that is pretty bad in my opinion, first of all, you should never type variables like that, and also that may not work anyway. The reason for the pcall in the first place is because it does error, I’ve had experience of it erroring sometimes, so putting it in a pcall a loop, preferably with a timeout delay, then your in the golden. You need a timeout delay just in case it could loop and error for a while.
yeah i was dumb back then, now i have learned about pcall function
Learning is the best part of the journey, cheers, mate!
task.spawn(function()
pcall(function()
local Succes
repeat
local Succes,failed = pcall(function()
Succes = StaterGui:SetCore("ResetButtonCallback",false)
end)
task.wait(0.4)
until Succes
end)
end)
Ehh… bud.
This post is 4 years old.
At least it’s not like some of the absolute garbage posts we have been getting as of late! (lol)
It’s ResetButtonCallback, not ResetButtonCallBack.
Please refer to the documentation for any issues.
https://create.roblox.com/docs/reference/engine/classes/StarterGui#SetCore
Yeah I tried that too and it didn’t work.
Show me the code you’re trying to make this function with.
repeat
local success = pcall(function()
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
end)
task.wait(0.1)
until success
Am I being a stupid lil’ dumb dumb or is this just a bug?
Strange, it works on my end perfectly fine; the reset button is completely disabled.
Try to report it, or make a separate scripting support post.
Your repeat-until statement is outside of the scope of your success variable.
local success --declare variable here so that it's within the repeat-until statement's scope
repeat
--do code
success = true --make variable truthy
until success
My earlier solution in the thread should still work.

