Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I disable the reset button?

Asked by 7 years ago

In some games, you can't reset. I don't know any scripts to do that, how do I make it so, when a player trys to reset, the game, won't allow him.

0
why would you want to nc2r 117 — 5y
0
For his game! Why did you ask that @nc2r? TheRealPotatoChips 793 — 4y
0
@TheRealPotatoChips this is a post made 3 years ago, and you reply to a comment on it? TickoGrey 116 — 3y

3 answers

Log in to vote
4
Answered by
DanzLua 2879 Moderation Voter Community Moderator
7 years ago
Edited 7 years ago

You can use the function :SetCore() of StarterGui to disable the reset button.

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

This must be ran on a localscript

0
Thank you, I will test if this works. If so, then I'll accept your answer. ZAZC_Noob 7 — 7y
0
It worked, thank you! ZAZC_Noob 7 — 7y
0
doesnt work anymore Techyfied 114 — 4y
0
good to know seikkatsu 110 — 4y
0
still works to this day, make sure to put the script under startergui and put it as a localscript Ea_g1e 0 — 3y
Ad
Log in to vote
1
Answered by 4 years ago

https://devforum.roblox.com/t/resetbuttoncallback-has-not-been-registered-by-the-corescripts/78470/6

local coreCall do
    local MAX_RETRIES = 8

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

    function coreCall(method, ...)
        local result = {}
        for retries = 1, MAX_RETRIES do
            result = {pcall(StarterGui[method], StarterGui, ...)}
            if result[1] then
                break
            end
            RunService.Stepped:Wait()
        end
        return unpack(result)
    end
end

coreCall('SetCore', 'ResetButtonCallback', false)

this will always work, incase your here and the other answers don't work.

0
^ local script XxOPGUYxX1234567 221 — 4y
0
and place it in startplayerscripts XxOPGUYxX1234567 221 — 4y
0
and place it in startplayerscripts XxOPGUYxX1234567 221 — 4y
Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

so what about game:GetService("StarterGui"):SetCore("LeaveButtonCallback", false)

0
hmm interesting XxOPGUYxX1234567 221 — 4y
0
doesnt work klwqehfliuwqhefowqefo;lqwefji;qwoef XxOPGUYxX1234567 221 — 4y
0
good idea tho XxOPGUYxX1234567 221 — 4y

Answer this question