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

How do I make a pcall of the reset character option?

Asked by 3 years ago

Hi, I'm trying to disable the reset character option. I want to do this with a pcall because the function is not always registered with corescripts. I don't know how to make a pcall out of this. Can someone make it clear to me?

Line of code:

StarterGui:SetCore("ResetButtonCallback", false)

1 answer

Log in to vote
2
Answered by 3 years ago
Edited 3 years ago

it will be :

``` local function disableReset()

local success,err = pcall(function()

    SetCore("ResetButtonCallback",false)

end)

    if err then

        warn(err)
        disableReset()

    end

end

```

0
Does it try again? Bankrovers 226 — 3y
0
oh wait djabdou33 40 — 3y
0
I edited it now it will try again djabdou33 40 — 3y
0
Thanks Bankrovers 226 — 3y
Ad

Answer this question