Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

it will be :

local function disableReset()

	local success,err = pcall(function()

		SetCore("ResetButtonCallback",false)

	end)

		if err then

			warn(err)
			disableReset()

		end

end

4 comments

0

Does it try again?

0

oh wait

0

I edited it now it will try again

0

Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.