Hello. I have a problem with this script.
It works on a human but doesn't work on monsters. I want it to work also on mosnters.
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
local player = Player(attacker)
if not player...