How do I know if someone pressed the Reset button?

I don’t use humanoids but I’d really like to know if someone choose to reset.
How do I do that?

1 Like

From Documentation - Roblox Creator Hub

local resetBindable = Instance.new("BindableEvent")
resetBindable.Event:connect(function()
    -- Implement custom reset logic here
end)
 
-- This will remove the current behavior for when the reset button 
-- is pressed and just fire resetBindable instead.
game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
 
-- Setting ResetButtonCallback to false will grey out the reset button
-- in the menu and players won't be able to reset in your game.
game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
29 Likes

Ahh thanks! I was looking for that page but didn’t find it, thanks :smiley:

1 Like