Hello, I am trying to make a script that will change the health of an NPC based on the number times it respawns. Ive got a respawn script to work, however, i am trying to get a script to count its deaths. (Note: I havent tried to change the health yet until i can get a number for the deaths.) Below is my script so far...If i made a simple mistake or something stupid, please dont be afraid to call me stupid because i want to learn from my mistakes. Thank you so much!
local human = game.Workspace.testfighter.Humanoid
local count = human.Died.Value
while human.Died:Wait(count) do
count = count + 1
print(count)
end
