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!
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.
Any references?
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
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.