Reproduction Steps
Trying to disable the reset button on mobile is impossible. If I do
StarterGui:SetCore("ResetButtonCallback", false)
then I get an error that it hasn’t loaded yet.
ResetButtonCallback has not been registered by the CoreScripts
If I try
local StarterGui = game:GetService("StarterGui")
local CoreCall do
local MAX_RETRIES = 100
function CoreCall(method, ...)
local Result = {}
for i = 1, MAX_RETRIES do
Result = {pcall(StarterGui[method], StarterGui, ...)}
if Result[1] then
break
end
task.wait(1)
end
return unpack(Result)
end
end
assert(CoreCall("SetCore", "ResetButtonCallback", false))
It still does not work. Tried in ReplicatedFirst, StarterPlayerScripts and StarterCharacterScripts.
Note, this works fine on PC. However, when I play on mobile I am still able to reset.
Everywhere on the forums, the same chunk of code gets pasted
however, this solution clearly doesn’t work.
Expected Behavior
The reset button to just disable. No errors to be thrown my way. This single line of code
StarterGui:SetCore("ResetButtonCallback", false)
SHOULD work 100% of the time
Actual Behavior
It doesn’t disable on mobile when it should
Workaround
No
Issue Area: Engine
Issue Type: Other
Impact: High
Frequency: Constantly