When u change the monster name with the function, if have players in area, those players don't have the monster name updated, to solve this, before u change the monster name, teleport away from any players, and teleport back to right position.
local farAwayPosition = {x = 1, y = 1, z = 7}...