Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is health a property in the player through game.Workspace?

Is the health of a player accessible in game.Workspace? Or only in game.Players?

4 comments

0

Health is a property of the player's character's Humanoid. This is usually accessed through Player.Character.Humanoid.Health

0

ok thanks

0

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

0

ok thanks can you put that as the answer so I can accept it?

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.