In a LocalScript, inside of StarterGui / StarterPlayerScripts (StarterGui preferred)
local starterGui = game:GetService("StarterGui")
starterGui:SetCore("ResetButtonCallback", false)
If this is what you did, then you did it correctly. Maybe try adding a wait()
at the top to see if that works.
2 Likes
Correct! It does work.
However. Hereās the weird thingā¦
My view:
My friendās view (@WaviestBalloon ):
Why?
Not sure why itās not working for youā¦ same error in the output?
Could try this, but I have not tried it myself so I donāt know how well it would work:
local runService = game:GetService("RunService")
local starterGui = game:GetService("StarterGui")
local maxAttempts = 10
for i = 1, maxAttempts, 1 do
local success, message = pcall(function()
starterGui:SetCore("ResetButtonCallback", false)
end)
if success then
print("ResetButton Disabled")
break
else
warn(message)
end
runService.RenderStepped:Wait()
end
1 Like
Thanks for taking time out of your day to write this custom code. Sorry for the bothering.
Sad to say that it doesnāt work for some reason.
Error Code:
No wait! I fixed it for you.
You didnāt add a )
after the end in line 8.
Oh, rip, forgot to add a )
Simple fix:
local success, message = pcall(function()
starterGui:SetCore("ResetButtonCallback", false)
end) -- forgot to put a ")" here, sorry about that lol
1 Like
Thanks for helping me out! I really appreciate it!
No problem! Good luck with your game
1 Like
P1X3L_K1NG:
--You forgot: local starterGui = game:GetService("StarterGui")
local success, message = pcall(function()
starterGui:SetCore("ResetButtonCallback", false)
end) -- forgot to put a ")" here, sorry about that lol
You might wanna add local starterGui = game:GetService("StarterGui")
too.
Donāt forget next time.
Good luck with future errands.
Best of luck mate.