So how can I get the health of multiple players? I wanna be able to show obviously when a player took damage and is healing for everyone in the frame on the right in this clip.
This obviously only works for the local player, but this is what I have at the moment not sure if I’ll be able to use this though.
local humanoid = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
humanoid.HealthChanged:Connect(function(newHealth)
local maxHealth = humanoid.MaxHealth
if maxHealth then
script.Parent.player1.HP.Text = math.floor(newHealth).."/"..maxHealth.."HP"
end
end)
thanks :s