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

How do I detect a player reset character?

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!

1 comment

0

You can detect a death of a player's humanoid by using the Died event of the Humanoid. You can make a clone of the character and have attachments set to give the ragdoll effect.

2 answers

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.

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