I have in my game a disable reset button script. So the Core Gui of it is greyed out.
But for some reason the new design for mobile completely ignores it, so they can reset them self.
Is there a way to disable this on the new mobile version too ?
I have in my game a disable reset button script. So the Core Gui of it is greyed out.
But for some reason the new design for mobile completely ignores it, so they can reset them self.
Is there a way to disable this on the new mobile version too ?
Core GUI of what exactly?
limits
There stands “ResetButton”?
The ResetButton is also disabled for mobile then but its for everybody not greyed out, i dont know if that works
The Core Gui in the Menu to reset (The new one on mobile)
https://developer.roblox.com/en-us/api-reference/function/StarterGui/SetCore
local Game = game
local StarterGui = Game:GetService("StarterGui")
repeat
local Success, Result = pcall(function() StarterGui:SetCore("ResetButtonCallback", false) end)
task.wait()
until Success
The button isn’t greyed out but on attempting to reset nothing happens.
Oh, sorry. I don’t play on mobile so I don’t know what that is
Why are you replying to me?
;aflaldkf
whoops… i thought you were the topic poster lol
Oh, It’s fine. Just was a little confused there
I made this script and it sure worked…
local isamobiledevice = game:GetService("UserInputService").TouchEnabled
if isamobiledevice == true then
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))
end