How To Tell If Somebody presses the "Respawn Character" button

How would I make it so instead of resetting the character it shows a UI element when the reset character (respawn) is clicked

1 Like

ResetButtonCallback. Pass it a bindable event.

1 Like

Ok. How would I do that? (30 chars)

1 Like

Did you even read the link? It is all explained there.

1 Like

Yes, I did read it. I dont understand it.

1 Like

In the future, just look at the example code on the article.


local StarterGui = game:GetService("StarterGui")
local ResetBindable ="BindableEvent")

local function setCallback()
    StarterGui:SetCore("ResetButtonCallback", ResetBindable)

local success = false
local retryCount = 0
local maxTries = 5

    success = pcall(setCallback)
    retryCount = retryCount + 1
until success or retryCount >= maxTries

    -- the player reset

You can bind an event to fire whenever the reset button is used, Iā€™d recommend you mess around with it to see how it works.

1 Like