Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to prevent ResetButtonCallback error?

Asked by 4 years ago

I have been trying to make an anti reset script but it's not too reliable. I constantly get this syntax error.

SetCore: ResetButtonCallback has not been registered by the CoreScripts

Here is the script I made.

local StarterGui = game:GetService("StarterGui")

script.Parent:SetTopbarTransparency(1)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
StarterGui:SetCore("ResetButtonCallback", false)

1 answer

Log in to vote
1
Answered by 4 years ago

Actually, it's a good idea to wait before you register that sort of stuff. Core scripts loading soon enough isn't precisely reliable just yet.

I've personally found that a simple wait() does wonders, but YMMV.

--...
wait()
StarterGui:SetCore("ResetButtonCalback",false)
--...
1
thanks! ReallyUnikatni 68 — 4y
Ad

Answer this question