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

How can i disable humanoid death?

Asked by 5 years ago

Hello guys, i wanna know how can i disable humanoid's death because when player die my guis going to starter possition(i made tween so when people join they going on screen) this is what i tried ~~~~~~~~~~~~~~~~~ local char = script.Parent local hum = char:WaitForChild('Humanoid') hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false) ~~~~~~~~~~~~~~~~~ a script(not local script) in StarterCharacterScripts anyway for some reason its client sided so when players dead their body not respawning and they just are like ghosts(on my screen i only see their dead body, on their they are not dead so can walk around without i see them) Can someone please help me to fix that or tell me different way?

0
SetStateEnabled is used to set a HumanoidStateType to true. The Dead state is ALWAYS set to false unless you specify. A better method is to keep the Humanoid alive. Try this answered question: https://scriptinghelpers.org/questions/16232/how-to-make-it-so-players-cannot-reset#19465 xPolarium 1388 — 5y

Answer this question