Is there any API for it? Because when you reset in some games, your character will not break joints/ went 0 health. Such as Roblox Deathrun.
Thanks!
local StarterGui = game:GetService("StarterGui") StarterGui:SetCore("ResetButtonCallback",false)
^This would be in a LocalScript, as it is dealing with user interfaces.
You can also pass in a BindableEvent instead of 'false'.
The event would be fired when the Reset button is clicked, allowing a ServerScript to do whatever it wants instead of (or in addition to) killing the player.
Never thought I'd say it, but thank you AlvinBlox.