Is the health of a player accessible in game.Workspace? Or only in game.Players?
✓ ANSWER ACCEPTED
Is health a property in the player through game.Workspace?
1 answer
✓ Accepted answer
Yes. Here is an example:
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
print(Character.Humanoid.Health)
end)
end)
The only thing you cannot do to index a player in the workspace is LocalPlayer.
Please accept my answer if this helped!
1 comment
0
I need help on my other question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Health is a property of the player's character's Humanoid. This is usually accessed through Player.Character.Humanoid.Health
ok thanks
in the workspace, the players character can be found there, including their humanoid. this means that yes, you can access the player's health through workspace
ok thanks can you put that as the answer so I can accept it?