We use cookies on this site to enhance your user experience

Sep 14 2018, 4:41 PM PST

-- Called when the server gets an event saying an enemy was hit
local function onDestroyEnemy(player, enemy)
	enemy:Destroy()
	local enemyStat = player.leaderstats:WaitForChild("Score")
	enemyStat.Value = enemyStat.Value + 1
end