Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I detect a player reset character?

Asked by 5 years ago

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!

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. xPolarium 1388 — 5y

2 answers

Log in to vote
0
Answered by
WoolHat 53
5 years ago
Edited 5 years ago

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.

Ad
Log in to vote
0
Answered by 5 years ago

Any references?

Answer this question