Don't tell me you copypasted my lines between the quotes and thought this would've worked... Here are full codes ready to copypaste...
Reset on death:
addHook("ThinkFrame", do
for player in players.iterate
if not player.mo return end
if player.mo.state == S_PLAY_DIE
player.score = 0
end
end
end)
Reset on Map Load:
addHook("MapLoad", do
for player in players.iterate
if not player.mo return end
player.score = 0
end
end)
I didn't test any of them but they
should work.