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 — 5y
0
@TheRealPotatoChips this is a post made 3 years ago, and you reply to a comment on it? TickoGrey 116 — 4y

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.

1game: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 — 5y
0
good to know seikkatsu 110 — 5y
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 5 years ago

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

01local coreCall do
02    local MAX_RETRIES = 8
03 
04    local StarterGui = game:GetService('StarterGui')
05    local RunService = game:GetService('RunService')
06 
07    function coreCall(method, ...)
08        local result = {}
09        for retries = 1, MAX_RETRIES do
10            result = {pcall(StarterGui[method], StarterGui, ...)}
11            if result[1] then
12                break
13            end
14            RunService.Stepped:Wait()
15        end
16        return unpack(result)
17    end
18end
19 
20coreCall('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 5 years ago
Edited 5 years ago

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

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

Answer this question