-- Game update loop

local function onHeartbeat(delta)
	local damage = LAVA_DPS * delta
	
	-- Go through all of the characters on fire and make them take damage
	for character in pairs(charactersOnFire) do
		local humanoid = character:FindFirstChildOfClass("Humanoid")
		if humanoid then
			humanoid:TakeDamage(damage)
		end
	end
end
