game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
hum.HealthChanged:Connect(function()
if hum.Health <= 50 then
local info = TweenInfo.new(3)
local tween = game:GetService("TweenService"):Create(hum,info,{Health=100})
end
end)
end)
end)
It only gets as far as to character added.

3 comments
Thanks!
It's not working. I'll edit the post according to the new script.
Wait, it's working, i forgot to do Tween:Play()