StarterCharacterScripts don't work

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):
unknown

Why?

Not sure why itā€™s not working for youā€¦ same error in the output?

Yup.
30 chars limitā€¦

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. :confused:

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 :slight_smile:

1 Like

You might wanna add local starterGui = game:GetService("StarterGui") too.
Donā€™t forget next time. :wink:

Good luck with future errands.
Best of luck mate.

I did :sweat_smile:

30 characters