Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I disable the reset button?

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.

3 comments

0

why would you want to

0

For his game! Why did you ask that @nc2r?

0

@TheRealPotatoChips this is a post made 3 years ago, and you reply to a comment on it?

3 answers

✓ Accepted answer

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

5 comments

0

Thank you, I will test if this works. If so, then I'll accept your answer.

0

It worked, thank you!

0

doesnt work anymore

0

good to know

0

still works to this day, make sure to put the script under startergui and put it as a localscript

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.

3 comments

0

^ local script

0

and place it in startplayerscripts

0

and place it in startplayerscripts

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

3 comments

0

hmm interesting

0

doesnt work klwqehfliuwqhefowqefo;lqwefji;qwoef

0

good idea tho

This discussion is preserved as it was. New answers, comments, and votes are closed.