Hello, i’m trying to disable the reset button, but however when i try to do that and i play the game, i get this error thrown:
SetCore: ResetButtonCallback has not been registered by the CoreScripts
Why won’t this work? I have even tried going to the roblox docs to see if i wrote a typo, but i didn’t.
Help will be appreciated.
Here is my code:
task.wait()
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
Are you using a Server-Script? If so remove it and use a Local script inside StarterCharacterScripts with that code.
I’m using a localscript in StarterPlayerScripts
Put it in StarterCharacterScripts and it should work.
1 Like
Searching for the error message on the forum comes up with this result:
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)
I post this every time this comes up. Always keep a util…
VSCPlays
(VSCPlays)
March 27, 2023, 12:28pm
#8
go for my first topic, I have a similar issue at 2022 and I got a solution
You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? i want to make it so players can’t reset their character
What is the issue? there was an error saying SetCore: ResetButtonCallback has not been registered by the CoreScripts
this is what’s happening
[Screenshot 2022-10-20 133745]
that’s what i expected
[Screenshot 2022-10-20 133802]
What solutions have you tried so far? i found one on the devforums but it didn’t work
St…
it has no relation to the character, it works fine at StarterPlayerScripts with a pcall()
, and It’s best to put it in StarterGui
1 Like
2jammers
(2jammers)
March 27, 2023, 12:30pm
#9
Why would you put it in StarterCharacterScripts if it has no relation to the character? That’s just a bad practice, it would work fine in StarterPlayerScripts with a single pcall.
2 Likes
system
(system)
Closed
April 10, 2023, 12:30pm
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.