Idk how to explain but example if a guy loses 10 hp, everytime he loses health his screen gets red how can u do that ?
EDIT: Okay heres the script i've done
local humanoid = game.Players.LocalPlayer.Character.Humanoid
local currentHealth = humanoid.Health
local Flash = script.Parent.Flash
humanoid.HealthChanged:connect(function(health)
local change = math.abs(currentHealth - health)
Flash.Visible = true
wait(0.2)
Flash.Visible = false
currentHealth = health
end)
But when he regenerates health it shows up too! i only want to make it show ONLY when hes losing not getting health.

1 comment
Humanoid health changed http://wiki.roblox.com/index.php?title=API:Class/Humanoid/HealthChanged