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

How do i detect a players health?

I have not played in a while and I forgot.

1 answer

I figured it out.

Local script:

local plr = game.Players.LocalPlayer
local h = plr.Character:WaitForChild("Humanoid")

h.Changed:connect(function(s)
if h.Health <= 0 then
	print("Dead Boi")
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.