Explanation:
I noticed recently that there was a bug for god mode. I will not disclose how that works due to it being able to be used via both server and client. If this does get patched it will also patch the god mode bug/exploit. When I was messing around with that I noticed that no matter what, when you respawn you are automatically spawned with the Humanoid state Enum.HumanoidStateType.Dead otherwise known as (15) set to true even though you aren’t dead.
EDIT: I discovered that even new humanoids are dead when created. For example run the code below;
local Hum = Instance.new(‘Humanoid’); print(Hum:GetStateEnabled(Enum.HumanoidStateType.Dead))
Not sure why this is the case but it is quite interesting.
How to replicate such bug:
All you have to do is spawn in game and run this code. It has this state enabled for both R6 and R15.
print(game:GetService(‘Players’)[‘YOURUSERNAMEHERE’].Character.Humanoid:GetStateEnabled(Enum.HumanoidStateType.Dead))
You will see that it prints that you are in-fact dead. It’s not an error with printing or GetStateEnabled. You genuinely are set to the state dead when spawning in. When you die it remains set to true.
Expected behavior
I expect roblox to fix this, if they do that will also patch the god mode exploit I found.
How will this be fixed? Easy, make it so the player doesn’t spawn with Enum.HumanoidStateType.Dead set to true. I assume someone was messing with Humanoid on the internal engine and accidentally set the dead state for Humanoid to true. Since it didn’t really affect behavior of the character very obviously this went ignored for quite some time.
A private message is associated with this bug report