Disabling RESET button NOT WORKING for MOBILE

Hello!
So I found a script to disable a reset button, and it works…well partially. I tested if for PC, and it works perfectly fine! But I tested it for mobile devices, and it does not work at all! I checked to see if anybody commented on this, where I took the actual code from, but nobody seemed to have mention it, so yeah! Can you please tell me how to fix it, thanks!
BTW: the code is not mine, I found it on the forum!

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

assert(coreCall('SetCore', 'ResetButtonCallback', false))
1 Like