So I'm trying to make a script that changes an IntValue by 1 every time one of the 7 zombies is killed. However when a zombie is killed it keeps outputting the same number '1', it isn't adding up the deaths. If anyone could please help me with this that would be very appreciated, thanks.
-This script is placed inside the humanoid of the zombie.
Wave = game.ReplicatedStorage.Wave.Value
while true do
wait(1)
if script.Parent.Health == 0 then
Wave = Wave + 1
print(Wave)
return
end
end
