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.
You can use the function :SetCore() of StarterGui to disable the reset button.
1 | game:GetService( "StarterGui" ):SetCore( "ResetButtonCallback" , false ) |
This must be ran on a localscript
https://devforum.roblox.com/t/resetbuttoncallback-has-not-been-registered-by-the-corescripts/78470/6
01 | local 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 |
18 | end |
19 |
20 | coreCall( 'SetCore' , 'ResetButtonCallback' , false ) |
this will always work, incase your here and the other answers don't work.
so what about game:GetService("StarterGui"):SetCore("LeaveButtonCallback", false)